Re: Problem getting watermark right with event time

2020-04-20 Thread Fabian Hueske
Hi Sudan, I noticed a few issues with your code: 1) Please check the computation of timestamps. Your code public long extractAscendingTimestamp(Eventi.Event element) { return element.getEventTime().getSeconds() * 1000; } only seems to look at the seconds of a timestamp. Typically, you wou

Problem getting watermark right with event time

2020-04-19 Thread Sudan S
Hi, I am having a problem getting watermark right. The setup is - I have a Flink Job which reads from a Kafka topic, uses Protobuf Deserialization, uses Sliding Window of (120seconds, 30 seconds), sums up the value and finally returns the result. The code is pasted below. The problem here is, I'