How to use two continuously window with EventTime in sql

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use two continuously window with EventTime in sql

liujiangang
      For one sql window, I can register table with event time and use time field in the tumble window. But if I want to use the result for the first window and use another window to process it, how can I do it? Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How to use two continuously window with EventTime in sql

Jark Wu-3
Hi,

You can use TUMBLE_ROWTIME(...) to get the rowtime attribute of the first window result, and use this field to apply a following window aggregate.

Best,
Jark

On Tue, 29 Oct 2019 at 15:39, 刘建刚 <[hidden email]> wrote:
      For one sql window, I can register table with event time and use time field in the tumble window. But if I want to use the result for the first window and use another window to process it, how can I do it? Thank you.