Hello everyone, out of curiosity, I am trying to d...
# troubleshooting
a
Hello everyone, out of curiosity, I am trying to do a Pattern Matching on Flink where I want to match as many events of a specific type A (A+) but I want to find a pattern where B? event B doesn't appear at all in a 30 minutes window since the last A. my pattern (A+ B?) complains because it says optional cannot be after greedy. any idea?
p
Are you ensuring
consecutive
after the greedy A+? Perhaps this may be the issue.
a
how do that?
😄
p
Are you defining the CEP through
Pattern.begin
? if so, after defining the first event
A
, you may call the method
consecutive
to ensure your pattern it
A+B?
I think this would solve it