[ 
https://issues.apache.org/jira/browse/FLINK-10680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16664527#comment-16664527
 ] 

Hequn Cheng commented on FLINK-10680:
-------------------------------------

[~Paul Lin] Hi, thanks for your contribution. I think we have to correct the 
document rather than change the code. The window start of both `offset -8` and 
`offset 16` would be same. This problem has been discussed 
[here|https://issues.apache.org/jira/browse/FLINK-10284] FLINK-10284.

> Unable to set negative offsets for TumblingEventTimeWindow
> ----------------------------------------------------------
>
>                 Key: FLINK-10680
>                 URL: https://issues.apache.org/jira/browse/FLINK-10680
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API
>    Affects Versions: 1.6.1
>            Reporter: Paul Lin
>            Priority: Major
>
> The following code given in documentation throws an IllegalArgumentException: 
> TumblingEventTimeWindows parameters must satisfy 0 <= offset < size.
> > TumblingEventTimeWindows.of(Time.days(1), Time.hours(-8));
> By design, the offset could be negative to fit in different time zones.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to