Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In Big Query SQL, the percentile_cont function uses the keyword OVER instead of WITHIN GROUP.
This is not to be confused with ISO SQL OVER, which is used in windowed aggregate functions. (percentile_cont is not a window function)
Requirements:
select percentile_cont(0.5) within group (order by x) in ISO SQL should be unparsed as select percentile_cont(0.5) over (order by x) if the target dialect is Big Query
Attachments
Issue Links
- incorporates
-
CALCITE-5955 BigQuery PERCENTILE functions are unparsed incorrectly
- Closed
- links to