confluentinc / ksql

The database purpose-built for stream processing applications.
https://ksqldb.io
Other
116 stars 1.04k forks source link

Support custom windows #1139

Open ChenShuai1981 opened 6 years ago

ChenShuai1981 commented 6 years ago

How to create custom window in KSQL? Does KSQL plan to support counting window?

See this comment for examples.

rodesai commented 6 years ago

What do you mean by a custom window? Something like the OVER clause in SQL?

ChenShuai1981 commented 6 years ago

A custom time window is something like workdays (Monday to Friday), nature month (day 1 to day 28/29/30/31 due to month) etc. And counting window is not rely on timestamp but count of messages. There are also two types of counting window, tumbling and hopping. You can refer to Apache Flink for more detail.

apurvam commented 6 years ago

This is currently not supported. I will turn this issue into a feature request.