[jira] [Created] (FLINK-6906) TumblingProcessingTimeWindows can't set offset parameter to a negative value

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6906) TumblingProcessingTimeWindows can't set offset parameter to a negative value

JIRA jira@apache.org
bmnouwq created FLINK-6906:
------------------------------

             Summary: TumblingProcessingTimeWindows  can't  set offset parameter to a negative value
                 Key: FLINK-6906
                 URL: https://issues.apache.org/jira/browse/FLINK-6906
             Project: Flink
          Issue Type: Bug
          Components: DataStream API
    Affects Versions: 1.2.1, 1.3.0, 1.2.0, 1.2.2
            Reporter: bmnouwq


Excuse my English.

In the DataStream API,I specify
{code:java}
org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows
{code}
 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.

{code:java}
org.apache.flink.streaming.api.windowing.assigners.SlidingEventTimeWindows
{code},
{code:java}
org.apache.flink.streaming.api.windowing.assigners.SlidingProcessingTimeWindows
{code},
{code:java}
org.apache.flink.streaming.api.windowing.assigners.TumblingEventTimeWindows
{code} has the same problem.

We should use the offset absolute value to compare with the size in the construct method.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)