diff options
author | Herman van Hovell <hvanhovell@questtec.nl> | 2016-04-19 15:16:02 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2016-04-19 15:16:02 -0700 |
commit | da8859226e09aa6ebcf6a1c5c1369dec3c216eac (patch) | |
tree | a72601d6d067bf81e5531e4de7d93f226186aef5 /core | |
parent | 3c91afec20607e0d853433a904105ee22df73c73 (diff) | |
download | spark-da8859226e09aa6ebcf6a1c5c1369dec3c216eac.tar.gz spark-da8859226e09aa6ebcf6a1c5c1369dec3c216eac.tar.bz2 spark-da8859226e09aa6ebcf6a1c5c1369dec3c216eac.zip |
[SPARK-4226] [SQL] Support IN/EXISTS Subqueries
### What changes were proposed in this pull request?
This PR adds support for in/exists predicate subqueries to Spark. Predicate sub-queries are used as a filtering condition in a query (this is the only supported use case). A predicate sub-query comes in two forms:
- `[NOT] EXISTS(subquery)`
- `[NOT] IN (subquery)`
This PR is (loosely) based on the work of davies (https://github.com/apache/spark/pull/10706) and chenghao-intel (https://github.com/apache/spark/pull/9055). They should be credited for the work they did.
### How was this patch tested?
Modified parsing unit tests.
Added tests to `org.apache.spark.sql.SQLQuerySuite`
cc rxin, davies & chenghao-intel
Author: Herman van Hovell <hvanhovell@questtec.nl>
Closes #12306 from hvanhovell/SPARK-4226.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions