sunjincheng created FLINK-10676:
-----------------------------------
Summary: Add 'as' method for OverWindowWithOrderBy in Java API
Key: FLINK-10676
URL:
https://issues.apache.org/jira/browse/FLINK-10676 Project: Flink
Issue Type: Improvement
Components: Table API & SQL
Affects Versions: 1.7.0
Reporter: sunjincheng
Fix For: 1.7.0
The preceding clause of OVER Window in the traditional database is optional. The default is UNBOUNDED. So we can add the "as" method to OverWindowWithOrderBy. This way OVERWindow is written more easily. e.g.:
{code:java}
.window(Over partitionBy 'c orderBy 'proctime preceding UNBOUNDED_ROW as 'w){code}
Can be simplified as follows:
{code:java}
.window(Over partitionBy 'c orderBy 'proctime as 'w){code}
What do you think?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)