[
https://issues.apache.org/jira/browse/FLINK-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950531#comment-15950531
]
Vladislav Pernin commented on FLINK-6214:
-----------------------------------------
Let's take the example of a simple one day window, but that has to begin at
00:00:00 and not at 01:00:00 and ends at 00:00:00 next day.
of(Time.days(1), Time.hours(-1)) would produce the expected window : J 00:00:00
-> J+1 00:00:00
of(Time.days(1), Time.hours(23)) would also work but not as easy to think about.
> WindowAssigners do not allow negative offsets
> ---------------------------------------------
>
> Key: FLINK-6214
> URL: https://issues.apache.org/jira/browse/FLINK-6214
> Project: Flink
> Issue Type: Bug
> Components: Streaming
> Affects Versions: 1.2.0
> Reporter: Timo Walther
>
> Both the website and the JavaDoc promotes
> ".window(TumblingEventTimeWindows.of(Time.days(1), Time.hours(-8))) For
> example, in China you would have to specify an offset of Time.hours(-8)". But
> both the sliding and tumbling event time assigners do not allow offset to be
> negative.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)