Sergey Nuyanzin created FLINK-41806:
---------------------------------------
Summary: 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
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)