Hello Steve Carlin, Michael Smith,

I'd like you to do a code review. Please visit

    http://gerrit.cloudera.org:8080/25237

to review the following change.


Change subject: IMPALA-15699: Calcite planner: fix grouping masks
......................................................................

IMPALA-15699: Calcite planner: fix grouping masks

Use the GROUPING kind for GROUPING_ID so Calcite can split masks in
repeated grouping-set branches that omit an argument. Keep its native
name and BIGINT return type.

Bind generated standard GROUPING calls to native GROUPING_ID. Native
GROUPING returns TINYINT and produces incorrect masks for these calls.
Keep custom Impala GROUPING calls and Original planner behavior intact.

Add direct native-conversion tests for repeated sets, argument order,
HAVING and the generated BIGINT mask binding.

Testing: 4 focused tests passed; 3 fail on the baseline. All 114 native
schema and row comparisons passed across both planners, distributed
codegen on/off and single-node execution.

Change-Id: Ieab66c076173c1266492382cffb55e7e2139b84c
Assisted-by: gpt-6.1-sol
---
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaGroupingIdFunction.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaAggRel.java
A 
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteGroupingIdTest.java
3 files changed, 126 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/25237/1
--
To view, visit http://gerrit.cloudera.org:8080/25237
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieab66c076173c1266492382cffb55e7e2139b84c
Gerrit-Change-Number: 25237
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to