Reputation: 507
My job does the following things:
I have several issues:
Have I missed something? Is there a better way to do that?
Upvotes: 0
Views: 796
Reputation: 43499
Flink aligns time windows to the epoch. So if you have windows that are one hour long, they run from the top of the hour to the top of the hour. Day long windows run from midnight to midnight. The same principle applies to windows that are seven days long, and since the epoch began on a Thursday (Jan 1, 1970), a window that is seven days long should close at midnight on Wednesday night / Thursday morning.
You can supply an offset to the window constructor if you want to shift the windows to start at a different time.
Upvotes: 3