Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.2.0, 1.2.1, 1.2.2, 1.3.0
-
None
-
Important
Description
Excuse my English.
In the DataStream API,I specify
org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows
an offset of a negative value such as Time.hours(-8),When trying to submit the Job will throw IllegalArgumentException "TumblingProcessingTimeWindows parameters must satisfy 0 <= offset < size" .
This is problematic for living in somewhere which is not using UTC-00:00 time.
org.apache.flink.streaming.api.windowing.assigners.SlidingEventTimeWindows
,
org.apache.flink.streaming.api.windowing.assigners.SlidingProcessingTimeWindows
,
org.apache.flink.streaming.api.windowing.assigners.TumblingEventTimeWindows
has the same problem.
We should use the offset absolute value to compare with the size in the construct method.
Attachments
Issue Links
- duplicates
-
FLINK-6214 WindowAssigners do not allow negative offsets
- Closed