[ https://issues.apache.org/jira/browse/FLINK-6839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16756177#comment-16756177 ]
Kurt Young commented on FLINK-6839: ----------------------------------- I'm closing this issue since it will be addressed after blink gets merged. > Improve SQL OVER alias When only one OVER window agg in selection. > ------------------------------------------------------------------ > > Key: FLINK-6839 > URL: https://issues.apache.org/jira/browse/FLINK-6839 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Reporter: sunjincheng > Priority: Major > > For OVER SQL: > {code} > SELECT a COUNT(c) OVER (ORDER BY proctime RANGE BETWEEN INTERVAL '10' SECOND > PRECEDING AND CURRENT ROW) as cnt1 FROM MyTable > {code} > We expect plan {{DataStreamCalc(select=[a, w0$o0 AS cnt1])}} But we get > {{DataStreamCalc(select=[a, w0$o0 AS $1])}}. this improve only for plan > check. the functional is work well in nested queries,e.g.: > {code} > SELECT cnt1 from (SELECT a COUNT(c) OVER (ORDER BY proctime RANGE BETWEEN > INTERVAL '10' SECOND PRECEDING AND CURRENT ROW) as cnt1 FROM MyTable) > {code} > The SQL above is work well. which mentioned in > [FLINK-6760|https://issues.apache.org/jira/browse/FLINK-6760]. -- This message was sent by Atlassian JIRA (v7.6.3#76005)