You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "shuai.xu (Jira)" <ji...@apache.org> on 2020/02/12 03:01:00 UTC

[jira] [Created] (FLINK-16010) Support notFollowedBy with interval as the last part of a Pattern

shuai.xu created FLINK-16010:
--------------------------------

             Summary: Support notFollowedBy with interval as the last part of a Pattern
                 Key: FLINK-16010
                 URL: https://issues.apache.org/jira/browse/FLINK-16010
             Project: Flink
          Issue Type: New Feature
          Components: Library / CEP
    Affects Versions: 1.9.0
            Reporter: shuai.xu


Now, Pattern.begin("a").notFollowedBy("b") is not allowed in CEP. But this a useful in many applications. Such as operators may want to find the users who created an order but didn't pay in 10 minutes.

So I propose to support that notFollowedBy() with a interval can be the last part of a Pattern. 

For example,  Pattern.begin("a").notFollowedBy("b").within(Time.minutes(10)) will be valid in the future.

Discuss in dev mail list is [https://lists.apache.org/thread.html/rc505728048663d672ad379578ac67d3219f6076986c80a2362802ebb%40%3Cdev.flink.apache.org%3E] 



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