calcite icon indicating copy to clipboard operation
calcite copied to clipboard

[CALCITE-3088] Multi-groupsets query failed due to data type preservation check

Open DonnyZone opened this issue 6 years ago • 1 comments

The issue is described in CALCITE-3088. This kind of query is supported, for example, the case in agg.iq

# ROLLUP on 1 column
select deptno + 1, count(*) as c
from emp
group by rollup(deptno);

However, nullifyType in AggregatingSelectScope only checks the SqlNode itself, we need to take more cases into consideration.

DonnyZone avatar Jun 06 '19 14:06 DonnyZone

I will find time to take a look.

hsyuan avatar Jun 07 '19 21:06 hsyuan