Get Started Free
David Anderson

David Anderson

Software Practice Lead

Window aggregations

Flink SQL uses window table-valued functions to support aggregations over time windows. These functions support several types of windows:

  • tumbling
  • hopping
  • cumulating
  • session

Session windows group events into sessions separated by gaps where the stream is idle for some minimum interval. The other window types all group events into windows of a fixed size relative to the time of day.

For windows relative to each event (rather than the time of day), see the module on OVER windows.

For a guided exploration into how both window and over aggregations work, see the accompanying exercise.

Documentation

Use the promo codes KAFKA101 & CONFLUENTDEV1 to get $25 of free Confluent Cloud storage and skip credit card entry.

Be the first to get updates and new content

We will only share developer content and updates, including notifications when new content is added. We will never send you sales emails. 🙂 By subscribing, you understand we will process your personal information in accordance with our Privacy Statement.