buckets must be a constant positive integer.
An ORDER BY clause is required. The window frame must be the whole partition (ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), which is also the default frame used when none is specified explicitly.
For more detail on window function syntax see: Window Functions - Syntax.
Returned value
- The bucket number of the current row within its partition. UInt64.
Query
Query
Response