Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- is related to
-
CALCITE-1886 Support "LIMIT [offset,] row_count", per MySQL
- Closed
- relates to
-
CALCITE-5086 Core parser should allow "OFFSET" to occur before "LIMIT"
- Closed
- links to