fapaul commented on code in PR #27742:
URL: https://github.com/apache/flink/pull/27742#discussion_r2895222246
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkStreamRuleSets.scala:
##########
@@ -193,7 +193,11 @@ object FlinkStreamRuleSets {
PruneEmptyRules.SORT_INSTANCE,
PruneEmptyRules.AGGREGATE_INSTANCE,
PruneEmptyRules.JOIN_LEFT_INSTANCE,
- PruneEmptyRules.JOIN_RIGHT_INSTANCE
+ PruneEmptyRules.JOIN_RIGHT_INSTANCE,
+ // Replaces global Aggregate over empty Values with default literal values
+ // (e.g. COUNT(*)=0). Handles the plan-time case where the planner can
+ // statically determine the input is empty.
+ CoreRules.AGGREGATE_VALUES
Review Comment:
I updated the PR with the batch tests
--
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]