dianfu commented on a change in pull request #7209: [FLINK-10977][table] Add
UnBounded FlatAggregate operator to streaming Table API
URL: https://github.com/apache/flink/pull/7209#discussion_r240957758
##########
File path:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/CommonAggregate.scala
##########
@@ -59,12 +60,17 @@ trait CommonAggregate {
val propStrings = namedProperties.map(_.property.toString)
- (groupStrings ++ aggStrings ++ propStrings).zip(outFields).map {
- case (f, o) => if (f == o) {
- f
- } else {
- s"$f AS $o"
- }
- }.mkString(", ")
+ if (aggs.nonEmpty &&
aggs(0).getAggregation.isInstanceOf[TableAggSqlFunction]) {
Review comment:
aggs(0) -> aggs.head
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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