OOM while trying to prune partitions:
Interpreter always asks for a new buffer to hold varchar/varbinary or decimal constant values. That's why the memory size required would be proportion to # of constant expressions multiplied by # of input rows (partition). This is different from evaluation from run-time generated where constant expression will be evaluated once and use only one buffer per value.
To use one buffer for each unique constant value in query.