Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6035

Correctly unparse WITHIN GROUP for Big Query dialect

    XMLWordPrintableJSON

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

          Activity

            People

              oliverlee Oliver Lee
              oliverlee Oliver Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: