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

ROW_NUMBER, RANK generating Invalid SQL

    XMLWordPrintableJSON

    Details

      Description

      The SQL standard says:- 

      If <ntile function>, <lead or lag function>, <rank function type> or ROW_NUMBER is specified, then: … The window framing clause of WDX shall not be present.

      So, Calcite should not print the Window Frames when such functions are used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                Krishnakant A KrishnaKant Agrawal
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: