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

Dawid Wysakowicz closed FLINK-13999.
------------------------------------
    Fix Version/s: 1.9.2
                   1.8.3
                   1.10.0
       Resolution: Fixed

Fixed in:
master: 51bd2f68b3d1dbf5e553e26730695915e13a34f4
1.9: 12de704c2ecf42ddc5449a1c93d8c96e0e280fae
1.8: dc90f43e050a71aeaf0ced91c14d895f6512dfae

> Correct the documentation of MATCH_RECOGNIZE
> --------------------------------------------
>
>                 Key: FLINK-13999
>                 URL: https://issues.apache.org/jira/browse/FLINK-13999
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.8.2, 1.9.1
>            Reporter: Dian Fu
>            Assignee: Dian Fu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0, 1.8.3, 1.9.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Regarding to the following 
> [example|https://ci.apache.org/projects/flink/flink-docs-release-1.9/dev/table/streaming/match_recognize.html#aggregations]
>  in the doc:
> {code:java}
> SELECT *
> FROM Ticker
>     MATCH_RECOGNIZE (
>         PARTITION BY symbol
>         ORDER BY rowtime
>         MEASURES
>             FIRST(A.rowtime) AS start_tstamp,
>             LAST(A.rowtime) AS end_tstamp,
>             AVG(A.price) AS avgPrice
>         ONE ROW PER MATCH
>         AFTER MATCH SKIP TO FIRST B
>         PATTERN (A+ B)
>         DEFINE
>             A AS AVG(A.price) < 15
>     ) MR;
> {code}
> Given the inputs shown in the doc, it should be:
> {code:java}
>  symbol       start_tstamp       end_tstamp          avgPrice
> =========  ==================  ==================  ============
> ACME       01-APR-11 10:00:00  01-APR-11 10:00:03     14.5{code}
> instead of:
> {code:java}
>  symbol       start_tstamp       end_tstamp          avgPrice
> =========  ==================  ==================  ============
> ACME       01-APR-11 10:00:00  01-APR-11 10:00:03     14.5
> ACME       01-APR-11 10:00:04  01-APR-11 10:00:09     13.5
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to