DB
FunctionsWindow

row_number

Returns the 1-based row number of the current row within its partition, according to the window ORDER BY.

row_number(…) → UInt64

Kind · window

Returns the 1-based row number of the current row within its partition, according to the window ORDER BY.

Part of the Window family.