GitHub user twalthr opened a pull request:

    https://github.com/apache/flink/pull/4199

    [FLINK-6584] [table] Support multiple consecutive windows in SQL

    This allows for accessing rowtime and proctime attributes of windows in 
SQL. It introduces `TUMBLE_ROWTIME`, `TUMBLE_PROCTIME` etc. It also allows for 
multiple consecutive windows such as:
    
    ```
    SELECT
      TUMBLE_ROWTIME(rowtime, INTERVAL '0.004' SECOND),
      TUMBLE_END(rowtime, INTERVAL '0.004' SECOND),
      COUNT(`int`) as `int`
    FROM (
      SELECT
        TUMBLE_ROWTIME(rowtime, INTERVAL '0.002' SECOND) AS rowtime,
        COUNT(`int`) as `int`
      FROM $table
      GROUP BY TUMBLE(rowtime, INTERVAL '0.002' SECOND)
    )
    GROUP BY TUMBLE(rowtime, INTERVAL '0.004' SECOND)```

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

    $ git pull https://github.com/twalthr/flink FLINK-6584

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

    https://github.com/apache/flink/pull/4199.patch

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

    This closes #4199
    
----
commit 28fcb9250e85d02d70a956ea36ade54905b6b56d
Author: twalthr <twal...@apache.org>
Date:   2017-05-23T13:57:23Z

    [FLINK-6584] [table] Support multiple consecutive windows in 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to