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

BigQuery PERCENTILE functions are unparsed incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.37.0
    • None

    Description

      Currently if you have a query like:

      SELECT PERCENTILE_CONT(x, .5) OVER() FROM x; the OVER() clause gets unparsed with a window frame clause which BigQuery defines here.

      From the docs: "Only aggregate analytic functions can use a window frame clause."

      This causes BigQuery to fail with the following error: Window framing clause is not allowed for analytic function percentile_cont

      Attachments

        Issue Links

          Activity

            People

              tanclary Tanner Clary
              tanclary Tanner Clary
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: