[
https://issues.apache.org/jira/browse/FLINK-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947887#comment-15947887
]
Aljoscha Krettek commented on FLINK-6214:
-----------------------------------------
I think this might be "working as intended" and we need to fix the
documentation and Javadoc. Limiting the offset to 0 <= offset <= size
simplifies the implementation (if I'm not wrong). An offset of -8 can be
achieved by "offsetting in the other direction": An offset of 24 hours equals a
0 hours offset, an offset of 23 hours is the same as a -1 hour offset and so on.
> 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)