sunjincheng121 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_r271550350
##########
File path:
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/tableImpl.scala
##########
@@ -568,16 +589,37 @@ class WindowGroupedTableImpl(
override def select(fields: Expression*): Table = {
selectInternal(
groupKeys,
- window,
+ expandColumnsInGroupWindow(window),
fields)
}
+ private def expandColumnsInGroupWindow(window: GroupWindow): GroupWindow = {
+
+ val resolvedTimeField = tableImpl.resolveCalls(Seq(window.getTimeField))
+ assert(resolvedTimeField.size() == 1, "TimeField of window only support
one column.")
Review comment:
`TimeField of window only support one column.` -> `Group Window only
supports a single time field column.`?
----------------------------------------------------------------
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