hequn8128 commented on a change in pull request #8087: [FLINK-12029][table] Add 
column operations for TableApi
URL: https://github.com/apache/flink/pull/8087#discussion_r274798827
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/tableImpl.scala
 ##########
 @@ -564,26 +575,47 @@ class WindowGroupedTableImpl(
       fields)
   }
 
+  private def expandColumnsInGroupWindow(window: GroupWindow): GroupWindow = {
 
 Review comment:
   We can't return the column expression directly. We need to expand it as all 
references need to be distincted.
   ```
        public static List<Expression> extractFieldReferences(List<Expression> 
expressions) {
                return expressions.stream()
                        .flatMap(expr -> 
expr.accept(referenceExtractor).stream())
                        .distinct()
                        .collect(Collectors.toList());
        }
   ```

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