Juntao Hu created FLINK-30885:
---------------------------------

             Summary: Optional group pattern starts with non-optional looping 
pattern get wrong result on followed-by
                 Key: FLINK-30885
                 URL: https://issues.apache.org/jira/browse/FLINK-30885
             Project: Flink
          Issue Type: Bug
          Components: Library / CEP
    Affects Versions: 1.16.1
            Reporter: Juntao Hu


{code:java}
Pattern.begin("A")
  .followedBy(
    Pattern.begin("B").oneOrMore().greedy().consecutive()
      .next("C"))
  .optional()
  .next("D"){code}
This can match "a1 e1 d1", which is not the expected behavior.



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

Reply via email to