Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6906

TumblingProcessingTimeWindows can't set offset parameter to a negative value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.2.0, 1.2.1, 1.2.2, 1.3.0
    • None
    • API / DataStream
    • 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

          Activity

            People

              Unassigned Unassigned
              bmnouwq yanam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified