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

BigQuery PERCENTILE functions are unparsed incorrectly

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment