-
- Downloads
[SPARK-20719][SQL] Support LIMIT ALL
### What changes were proposed in this pull request? `LIMIT ALL` is the same as omitting the `LIMIT` clause. It is supported by both PrestgreSQL and Presto. This PR is to support it by adding it in the parser. ### How was this patch tested? Added a test case Author: Xiao Li <gatorsmile@gmail.com> Closes #17960 from gatorsmile/LimitAll.
Showing
- sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 1 addition, 1 deletion...in/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala 1 addition, 0 deletions...ala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
- sql/core/src/test/resources/sql-tests/inputs/limit.sql 14 additions, 10 deletionssql/core/src/test/resources/sql-tests/inputs/limit.sql
- sql/core/src/test/resources/sql-tests/results/limit.sql.out 33 additions, 15 deletionssql/core/src/test/resources/sql-tests/results/limit.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala 0 additions, 8 deletions...e/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
Loading
Please register or sign in to comment