Structured Streamingwindows
Defining a Table on a Streamsession
Continuous Queriesapp
Handling Event-timelua
TUMBLE(time_attr, interval),定義一個個連續的時間窗口,這樣每行數據只可能出如今一個窗口內,窗口之間不會出現重疊Defines a tumbling time window. A tumbling time window assigns rows to non-overlapping, continuous windows with a fixed duration (interval). For example, a tumbling window of 5 minutes groups rows in 5 minutes intervals. Tumbling windows can be defined on event-time (stream + batch) or processing-time (stream).
TUMBLE_START(time_attr, interval). 返回時間窗口的下限時間戳.Returns the timestamp of the inclusive lower bound of the corresponding tumbling, hopping, or session window.3d
Handling Late Datablog
Bob 12:54:00 ./xxx 到達時間14:01:00如何處理?it
Watermarks定義在cTime,容許延遲2hour, 14:00:00-2hour<13:00:00,窗口12:00:00-13::00:00仍保持
Watermarks定義在cTime,容許延遲5min,14:00:00-5min>13:00:00,時間窗口12:00:00-13:00:00已過時,數據被丟棄io