SELECT
cume_dist() OVER (ORDER BY id) AS cume_dist
FROM (
SELECT 1 AS id, 'A' AS category UNION ALL
SELECT 2 AS id, 'B' AS category UNION ALL
SELECT 3 AS id, 'A' AS category UNION ALL
SELECT 4 AS id, 'B' AS category UNION ALL
SELECT 5 AS id, 'A' AS category
) AS t
DataFusion error: Error during planning: Error during planning: cume_dist does not support zero arguments. No function matches the given name and argument types 'cume_dist()'. You might need to add explicit type casts.
Candidate functions:
cume_dist(Any, .., Any)
Also other window functions too.
dense_rank, percent_rank, rank, row_number.
Also other window functions too.
dense_rank
,percent_rank
,rank
,row_number
.BigQuery function reference https://cloud.google.com/bigquery/docs/reference/standard-sql/numbering_functions#cume_dist