Github user dawidwys commented on a diff in the pull request: https://github.com/apache/flink/pull/4331#discussion_r133667042 --- Diff: flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java --- @@ -340,6 +362,65 @@ public void resetNFAChanged() { return Tuple2.of(result, timeoutResult); } + private void discardComputationStatesAccordingToStrategy(Queue<ComputationState<T>> computationStates, --- End diff -- The changes in the next commit are not enough. The `Map` type should be also changed in `SharedBuffer#extractPatterns`. Also please provide tests for this behaviour (returning results in Pattern order), so that it will not be possible to change it by mistake.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---