'Flink TimeCharacteristic

I see in many older versions of Flink code a line that defines some time characteristic, like this: env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);

However, looking more into the documentation shows that this is now deprecated. Is it no longer required?



Solution 1:[1]

From Flink 1.12, the API StreamExecutionEnvironment.setStreamTimeCharacteristic(TimeCharacteristic) is deprecated. The new API is DataStream.assignTimestampsAndWatermarks(WatermarkStrategy)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BrightFlow