[ 
https://issues.apache.org/jira/browse/FLINK-9588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16513769#comment-16513769
 ] 

ASF GitHub Bot commented on FLINK-9588:
---------------------------------------

Github user dawidwys commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6168#discussion_r195720052
  
    --- Diff: 
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java ---
    @@ -697,6 +697,7 @@ private int calculateIncreasingSelfState(int 
ignoreBranches, int takeBranches) {
     
                final Stack<State<T>> states = new Stack<>();
                states.push(state);
    +           ConditionContext<T> context = new ConditionContext<T>(this, 
sharedBuffer, computationState);
    --- End diff --
    
    Rather than `computationState` just pass `conditionContext` to the 
`createDecisionGraph` method


> Reuse the same conditionContext with in a same computationState
> ---------------------------------------------------------------
>
>                 Key: FLINK-9588
>                 URL: https://issues.apache.org/jira/browse/FLINK-9588
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>            Reporter: aitozi
>            Assignee: aitozi
>            Priority: Major
>
> Now cep checkFilterCondition with a newly created Conditioncontext for each 
> edge, which will result in the repeatable getEventsForPattern because of the 
> different Conditioncontext Object.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to