ROW_NUMBER should emit distinct values

Details

Description

ROW_NUMBER should emit distinct values even for rows that have identical sort keys, or if there is no sort key. (This is distinct from RANK and DENSE_RANK, which emit the same value for rows with the same sort key.)

Attachments

Issue Links

is related to

CALCITE-800Window function defined within another window function should be invalid