flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-12170) Add support for generating optimized logical plan for Over aggregate
Date Fri, 12 Apr 2019 09:48:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-12170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

ASF GitHub Bot updated FLINK-12170:
-----------------------------------
    Labels: pull-request-available  (was: )

> Add support for generating optimized logical plan for Over aggregate
> --------------------------------------------------------------------
>
>                 Key: FLINK-12170
>                 URL: https://issues.apache.org/jira/browse/FLINK-12170
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table SQL / Planner
>            Reporter: godfrey he
>            Assignee: godfrey he
>            Priority: Major
>              Labels: pull-request-available
>
> This issue aims to generate optimized plan for Over aggregate queries on both Batch and
Stream, e.g. 
> {code:sql}
> SELECT a, b, c, RANK() OVER (PARTITION BY b ORDER BY c) FROM MyTable
> {code}
> currently, Stream requires all over aggregate functions must be computed on the  same
window, e.g. 
> {code:sql}
> SELECT c,
>     COUNT(a) OVER (PARTITION BY c ORDER BY proctime RANGE UNBOUNDED PRECEDING),
>     SUM(a) OVER (PARTITION BY b ORDER BY proctime RANGE UNBOUNDED PRECEDING)
> from MyTable
> {code} 
> the above sql is not supported because the partition keys are different.
> Batch does not  have such limitation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message