sunjincheng121 commented on a change in pull request #8359: 
[FLINK-11051][table] Add streaming window FlatAggregate to Table API
URL: https://github.com/apache/flink/pull/8359#discussion_r282795623
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/plan/rules/logical/ExtendedAggregateExtractProjectRule.java
 ##########
 @@ -87,9 +87,9 @@ public void onMatch(RelOptRuleCall call) {
                if (relNode instanceof LogicalAggregate || relNode instanceof 
LogicalWindowAggregate) {
                        call.transformTo(performExtract((Aggregate) relNode, 
input, relBuilder));
                } else if (relNode instanceof LogicalTableAggregate) {
-                       LogicalAggregate logicalAggregate =
-                               
LogicalTableAggregate.getCorrespondingAggregate((LogicalTableAggregate) 
relNode);
-                       RelNode newAggregate = performExtract(logicalAggregate, 
input, relBuilder);
+                       Aggregate aggregate =
 
 Review comment:
   I think it's better to add a new `performExtract` for TableAggregate,  in 
this way the code is more clearly. 
   We can not use the current `preformExtract` because of the `Aggregate` and 
`TableAggregate` if different logic node. What do you think?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to