Weijie Guo created FLINK-34240:
----------------------------------

             Summary: The example of sliding windows with offset in 
documentation is not correct
                 Key: FLINK-34240
                 URL: https://issues.apache.org/jira/browse/FLINK-34240
             Project: Flink
          Issue Type: Bug
          Components: Documentation
            Reporter: Weijie Guo
            Assignee: Weijie Guo


In documentation of windows, we have the following example code:
{code:java}
// sliding processing-time windows offset by -8 hours
input
    .keyBy(<key selector>)
    .window(SlidingProcessingTimeWindows.of(Time.hours(12), Time.hours(1), 
Time.hours(-8)))
    .<windowed transformation>(<window function>);
{code}

Unfortunately, it will raise as the absolute value of offset must be less than 
the slide.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to