-
- Downloads
[SPARK-18872][SQL][TESTS] New test cases for EXISTS subquery
## What changes were proposed in this pull request? This PR adds the first set of tests for EXISTS subquery. File name | Brief description ------------------------| ----------------- exists-basic.sql |Tests EXISTS and NOT EXISTS subqueries with both correlated and local predicates. exists-within-and-or.sql|Tests EXISTS and NOT EXISTS subqueries embedded in AND or OR expression. DB2 results are attached here as reference : [exists-basic-db2.txt](https://github.com/apache/spark/files/733031/exists-basic-db2.txt) [exists-and-or-db2.txt](https://github.com/apache/spark/files/733030/exists-and-or-db2.txt) ## How was this patch tested? This patch is adding tests. Author: Dilip Biswal <dbiswal@us.ibm.com> Closes #16710 from dilipbiswal/exist-basic.
Showing
- sql/core/src/test/resources/sql-tests/inputs/subquery/exists-subquery/exists-basic.sql 123 additions, 0 deletions...ql-tests/inputs/subquery/exists-subquery/exists-basic.sql
- sql/core/src/test/resources/sql-tests/inputs/subquery/exists-subquery/exists-within-and-or.sql 96 additions, 0 deletions.../inputs/subquery/exists-subquery/exists-within-and-or.sql
- sql/core/src/test/resources/sql-tests/results/subquery/exists-subquery/exists-basic.sql.out 214 additions, 0 deletions...sts/results/subquery/exists-subquery/exists-basic.sql.out
- sql/core/src/test/resources/sql-tests/results/subquery/exists-subquery/exists-within-and-or.sql.out 156 additions, 0 deletions...lts/subquery/exists-subquery/exists-within-and-or.sql.out
Please register or sign in to comment