Re: Watermark for each key?

2019-04-25 Thread Till Rohrmann
Your proposal could probably also be implemented by using Flink's support for allowed lateness when defining a window [1]. It has basically the same idea that there might be some elements which violate the watermark semantics and which need to be handled separately. [1] https://ci.apache.org/proje

Re: Watermark for each key?

2019-04-25 Thread Congxian Qiu
There was someone working in IoT asking me whether Flink supports per-key watermark also. I’m not sure if we can do the statistics by using raw state manipulating. We create a single state for every single key, and when receiving a key, we extract the timestamp and to see if we need to send som

Re: Watermark for each key?

2019-04-24 Thread Lasse Nedergaard
Thanks Till What about this workaround. If I after the watermark assignment split the stream in elements that fits in the watermark (s1) and those that don’t (s2). The s1 I process with the table api with a window aggregate using watermark and s2 I handle with an unbounded non-windows aggregat

Re: Watermark for each key?

2019-04-24 Thread Till Rohrmann
Hi Lasse, at the moment this is not supported out of the box by Flink. The community thought about this feature but so far did not implement it. Unfortunately, I'm also not aware of an easy workaround one could do in the user code space. Cheers, Till On Wed, Apr 24, 2019 at 3:26 PM Lasse Nederga

Watermark for each key?

2019-04-24 Thread Lasse Nedergaard
Hi. We work with IoT data and we have cases where the IoT-device delay data transfer if it can't get network access. We would like to use table windows aggregate function over each device to calculate some statistics, but for windows aggregate functions to work we need to assign a watermark. This