flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hongyuhong <...@git.apache.org>
Subject [GitHub] flink pull request #3175: [FLINK-5584]support sliding-count row-window on st...
Date Fri, 20 Jan 2017 02:23:57 GMT
GitHub user hongyuhong opened a pull request:


    [FLINK-5584]support sliding-count row-window on streaming sql

    Calcite has already support sliding-count row-window, the grammar look like:
    select sum(amount) over (rows 10 preceding) from Order;
    select sum(amount) over (partition by user rows 10 preceding) from Order;
    And it will parse the sql as a LogicalWindow relnode, the logical Window contains aggregate
func info and window info, it's similar to Flink LogicalWIndowAggregate, so we can add an
convert rule to directly convert LogicalWindow into DataStreamAggregate relnode.
    1. Add HepPlanner to do the window optimize, cause valcano planner can not choose the
ProjectToWindow optimize as the best.
    2. Add DataStreamWindowRule.scala to convert LogicalWindow to DataStreamAggregate.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hongyuhong/flink master

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3175
commit 2417e24ad676474df3c9fce6701024ca88c6a439
Author: hongyuhong 00223286 <hongyuhong@huawei.com>
Date:   2017-01-20T02:02:12Z

    support sliding-count row-window on streaming sql


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message