1. [SPARK-24536] Validate that an evaluated limit clause cannot be null (commit: fc3df45177d176cc0fe43049b6f8df372f7ea0e0) (details)
Commit fc3df45177d176cc0fe43049b6f8df372f7ea0e0 by gatorsmile
[SPARK-24536] Validate that an evaluated limit clause cannot be null
It proposes a version in which nullable expressions are not valid in the
limit clause
It was tested with unit and e2e tests.
Please review before opening a
pull request.
Author: Mauro Palsgraaf <>
Closes #21807 from mauropalsgraaf/SPARK-24536.
(cherry picked from commit 4ac2126bc64bad1b4cbe1c697b4bcafacd67c96c)
Signed-off-by: Xiao Li <>
(commit: fc3df45177d176cc0fe43049b6f8df372f7ea0e0)
The file was modifiedsql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala (diff)
The file was modifiedsql/core/src/test/resources/sql-tests/inputs/limit.sql (diff)
The file was modifiedsql/core/src/test/resources/sql-tests/results/limit.sql.out (diff)
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala (diff)