You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Jun Zhang <82...@qq.com> on 2019/11/27 09:22:13 UTC

Some doubts about window start time and end time

,              
Hi:
I defined a Tumbling window, I set the time size to one hour, and the resulting windows are [00: 00: 00-01: 00: 00], [01: 00: 00-02: 00: 00]. ....
This meets my expectations, but when I set the time size to 6 hours, the resulting window size is [02: 00: 00-08: 00: 00], [08: 00: 00-14: 00: 00], [14: 00: 00-20: 00: 00] ...
But my expected window size is [00: 00: 00-06: 00: 00], [06: 00: 00-12: 00: 00] ...
Is it right to get such a window result?



thanks

Re: Some doubts about window start time and end time

Posted by Caizhi Weng <ts...@gmail.com>.
Hi Jun,

How do you define your window? Could you please show us the code?

Thanks.

Jun Zhang <82...@qq.com> 于2019年11月27日周三 下午5:22写道:

> ,
> Hi:
> I defined a Tumbling window, I set the time size to one hour, and the
> resulting windows are [00: 00: 00-01: 00: 00], [01: 00: 00-02: 00: 00]. ....
> This meets my expectations, but when I set the time size to 6 hours, the
> resulting window size is [02: 00: 00-08: 00: 00], [08: 00: 00-14: 00: 00],
> [14: 00: 00-20: 00: 00] ...
> But my expected window size is [00: 00: 00-06: 00: 00], [06: 00: 00-12:
> 00: 00] ...
> Is it right to get such a window result?
>
> thanks
>
>
>