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

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

> MATCH_RECOGNIZE: optional variable after a greedy one fails with CEP's 
> internal MalformedPatternException
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-41806
>                 URL: https://issues.apache.org/jira/browse/FLINK-41806
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>
> In MATCH_RECOGNIZE, a pattern variable can't be optional (?, ??, *, *?) when 
> the variable right before it is greedy, such as A{2,}, A+ or A*. CEP doesn't 
> support this.
> repro
> {code:sql}
> SELECT * FROM t
> MATCH_RECOGNIZE (
>   ORDER BY proctime
>   MEASURES A.f0 AS aF0
>   PATTERN (A{2,} B? C)
>   DEFINE A AS A.f0 = 1
> )
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to