-
- Downloads
[SPARK-17011][SQL] Support testing exceptions in SQLQueryTestSuite
## What changes were proposed in this pull request? This patch adds exception testing to SQLQueryTestSuite. When there is an exception in query execution, the query result contains the the exception class along with the exception message. As part of this, I moved some additional test cases for limit from SQLQuerySuite over to SQLQueryTestSuite. ## How was this patch tested? This is a test harness change. Author: petermaxlee <petermaxlee@gmail.com> Closes #14592 from petermaxlee/SPARK-17011.
Showing
- sql/core/src/test/resources/sql-tests/inputs/limit.sql 20 additions, 0 deletionssql/core/src/test/resources/sql-tests/inputs/limit.sql
- sql/core/src/test/resources/sql-tests/inputs/number-format.sql 5 additions, 2 deletions...ore/src/test/resources/sql-tests/inputs/number-format.sql
- sql/core/src/test/resources/sql-tests/results/datetime.sql.out 1 addition, 1 deletion...ore/src/test/resources/sql-tests/results/datetime.sql.out
- sql/core/src/test/resources/sql-tests/results/having.sql.out 1 addition, 1 deletionsql/core/src/test/resources/sql-tests/results/having.sql.out
- sql/core/src/test/resources/sql-tests/results/limit.sql.out 83 additions, 0 deletionssql/core/src/test/resources/sql-tests/results/limit.sql.out
- sql/core/src/test/resources/sql-tests/results/natural-join.sql.out 1 addition, 1 deletion...src/test/resources/sql-tests/results/natural-join.sql.out
- sql/core/src/test/resources/sql-tests/results/number-format.sql.out 15 additions, 7 deletions...rc/test/resources/sql-tests/results/number-format.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala 0 additions, 50 deletions...e/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala 35 additions, 6 deletions...c/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
Loading
Please register or sign in to comment