Re: CEP operator in SQL pattern match does not clear it's state
Could you give a bit more details about your program? What is the query
you are using? What is the incoming data?
The "within" clause ensures that all partial matches that were initiated
at time t, are cleared when an event with timestamp (t + w) appears,
where w is the interval specified in "within" clause. The reason why it
is a good practice to use it for memory control is that it ensures that
there will be no partial matches dangling forever.
If the rate of incoming events and the probability of initiating new
partial matches is constant in the input stream I would not expect the
memory consumption to go down, but it should saturate after some time
and remain rather constant, but should not grow infinitely.
With "not going done" you mean that it's still growing or that it's constant? In case of it being constant, that's pretty much what is expected, right? If it's still growing, the only reason I could come up with: Do you work in event time and have watermarks properly assigned with a boundedTimestampExtractor or ascendingTimestampExtractor?
Von: "Muhammad Hakim" <[hidden email]> An: "user" <[hidden email]> Gesendet: Dienstag, 1. Oktober 2019 09:08:22 Betreff: CEP operator in SQL pattern match does not clear it's state