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

In parser, allow "LIMIT start, ALL"

    XMLWordPrintableJSON

Details

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

    Description

      In parser, allow "LIMIT start, ALL". For example,

      SELECT *
      FROM Emp
      ORDER BY sal DESC
      LIMIT 10, ALL
      

      would be equivalent to

      SELECT *
      FROM Emp
      ORDER BY sal DESC
      OFFSET 10
      

      No other database supports this syntax, but Calcite supports Postgres' "LIMIT ALL" and MySQL's "LIMIT start, count" so it makes sense to combine them.

      See the original discussion in CALCITE-5086.

      Attachments

        Issue Links

          Activity

            People

              hongyuguo hongyu guo
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: