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_r282768056
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/operations/AggregateOperationFactory.java
 ##########
 @@ -162,19 +162,33 @@ public TableOperation createWindowAggregate(
                List<PlannerExpression> convertedAggregates = 
bridge(aggregates);
                List<PlannerExpression> convertedWindowProperties = 
bridge(windowProperties);
 
+               Boolean isTableAggregate = aggregates.size() == 1 && 
isTableAggFunctionCall(aggregates.get(0));
 
 Review comment:
   I think it again, we do not need check size of aggregates in this method. 
and we can use `isTableAggFunctionCall` when need. such as 
`isTableAggFunctionCall(expr)`, see blow comments. :)

----------------------------------------------------------------
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