[
https://issues.apache.org/jira/browse/FLINK-6743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler closed FLINK-6743.
-----------------------------------
Resolution: Duplicate
Please see FLINK-6214 for a workaround.
> .window(TumblingEventTimeWindows.of(Time.days(1), Time.hours(-8))) doesn't
> work
> -------------------------------------------------------------------------------
>
> Key: FLINK-6743
> URL: https://issues.apache.org/jira/browse/FLINK-6743
> Project: Flink
> Issue Type: Bug
> Components: DataStream API
> Affects Versions: 1.2.0
> Environment: Flink 1.2.0.
> Reporter: Lix
>
> The tutorial on the official website says that we can use
> {quote}
> // daily tumbling event-time windows offset by -8 hours.
> input
> .keyBy(<key selector>)
> .window(TumblingEventTimeWindows.of(Time.days(1), Time.hours(-8)))
> .<windowed transformation>(<window function>);
> {quote}
> when our timezone is UTC+8, which is in China. But when I tried to run this
> code, it just reported an error:
> {quote}
> Exception in thread "main" java.lang.IllegalArgumentException:
> TumblingProcessingTimeWindows parameters must satisfy 0 <= offset < size
> at
> org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows.<init>(TumblingProcessingTimeWindows.java:54)
> at
> org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows.of(TumblingProcessingTimeWindows.java:111)
> {quote}
> How then, should I write my code to make a tumbling window which clears every
> day at 00:00, when my timezone is UTC+8?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)