You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "lincoln-lil (via GitHub)" <gi...@apache.org> on 2023/07/31 13:56:11 UTC

[GitHub] [flink] lincoln-lil commented on a diff in pull request #23051: [FLINK-32648][table] Reuse Calcite's `SqlWindowTableFunction`

lincoln-lil commented on code in PR #23051:
URL: https://github.com/apache/flink/pull/23051#discussion_r1276305812


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlWindowTableFunction.java:
##########
@@ -62,25 +58,7 @@
  * org.apache.calcite.sql.SqlWindowTableFunction}, but support return additional {@code window_time}
  * time attribute column which should keep the same type with original time attribute.
  */
-public class SqlWindowTableFunction extends SqlFunction implements SqlTableFunction {
-
-    /** The data source which the table function computes with. */
-    protected static final String PARAM_DATA = "DATA";
-
-    /** The time attribute column. Also known as the event time. */
-    protected static final String PARAM_TIMECOL = "TIMECOL";
-
-    /** The window duration INTERVAL. */
-    protected static final String PARAM_SIZE = "SIZE";
-
-    /** The optional align offset for each window. */
-    protected static final String PARAM_OFFSET = "OFFSET";
-
-    /** The session key(s), only used for SESSION window. */
-    protected static final String PARAM_KEY = "KEY";
-
-    /** The slide interval, only used for HOP window. */
-    protected static final String PARAM_SLIDE = "SLIDE";
+public class SqlWindowTableFunction extends org.apache.calcite.sql.SqlWindowTableFunction {

Review Comment:
   Here it's changed to direct inheritance, so the class comments need to be updated as well



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

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org