ggjh-159 commented on code in PR #13558:
URL: https://github.com/apache/gluten/pull/13558#discussion_r4651542486


##########
gluten-flink/planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecGroupAggregate.java:
##########
@@ -198,13 +197,28 @@ protected Transformation<RowData> translateToPlanInternal(
             .collect(Collectors.toList());
     List<Integer> keyIndexes = 
Arrays.stream(grouping).boxed().collect(Collectors.toList());
     PartitionFunctionSpec keySelectorSpec = new 
HashPartitionFunctionSpec(inputType, keyIndexes);
+    KeyedStateSpec keyedStateSpec =

Review Comment:
   Good catch — it did not work end to end: the native keyed-state spec rejects 
an empty key channel list, but that check lives in C++, so a global aggregate 
used to pass planning and die only at task start with a JNI error. 
StreamExecGroupAggregate now rejects it at plan time with a clear message. 
Pinned by GroupAggregateGuardTest#testGlobalAggregateRejectedAtPlanTime — the 
test drives the plan through EXPLAIN, so the thrown exception itself proves the 
shadowed gluten node is the one rejecting (the native planner accepts both 
query shapes). Global aggregation is left as a TODO (dummy-key rewrite or a 
native keyless state).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to