Juntao Hu created FLINK-31328:
---------------------------------

             Summary: Greedy option on the looping pattern at the end not 
working
                 Key: FLINK-31328
                 URL: https://issues.apache.org/jira/browse/FLINK-31328
             Project: Flink
          Issue Type: Bug
          Components: Library / CEP
    Affects Versions: 1.16.1, 1.15.3, 1.17.0
            Reporter: Juntao Hu


If use greedy option on a looping pattern which is at the end of the whole 
pattern, the matching result is not "greedy".

Example1

pattern: A.oneOrMore().consecutive().greedy() (SKIP_TO_NEXT)

sequence: a1, a2, a3

result: [a1] [a2] [a3]

Example2

pattern: B.next(A).oneOrMore().consecutive().greedy() (SKIP_TO_NEXT)

sequence: b1, a1, a2, a3

result: [b1 a1]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to