Support for CUBE and ROLLUP