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_r283162046
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/operations/AggregateOperationFactory.java
 ##########
 @@ -187,6 +170,33 @@ public TableOperation createWindowAggregate(
                        tableSchema);
        }
 
+       /**
+        * Get result types for the aggregate or the table aggregate 
expression. For a table aggregate,
+        * it may return multi result types when the composite return type is 
flattened.
+        */
+       private Stream<TypeInformation<?>> 
getAggregateResultTypes(PlannerExpression plannerExpression) {
 
 Review comment:
   How about `getAggregateResultTypes ` ->`extractAggregateResultTypes`, That's 
because for tableAgg we should flatten the `tableAgg expression's type`, 
furthermore, it's more consistence with `extractAggregateNames`, 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