aboutsummaryrefslogtreecommitdiff
path: root/sql/catalyst/src/main
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-07-25 19:52:17 -0700
committerReynold Xin <rxin@databricks.com>2016-07-25 19:52:17 -0700
commit8a8d26f1e27db5c2228307b1c3609b4713b9d0db (patch)
tree5c125cdb814b3b8681182e4bfda9bc228fefcfbd /sql/catalyst/src/main
parentba0aade6d517364363e07ed09278c2b44110c33b (diff)
downloadspark-8a8d26f1e27db5c2228307b1c3609b4713b9d0db.tar.gz
spark-8a8d26f1e27db5c2228307b1c3609b4713b9d0db.tar.bz2
spark-8a8d26f1e27db5c2228307b1c3609b4713b9d0db.zip
[SPARK-16672][SQL] SQLBuilder should not raise exceptions on EXISTS queries
## What changes were proposed in this pull request? Currently, `SQLBuilder` raises `empty.reduceLeft` exceptions on *unoptimized* `EXISTS` queries. We had better prevent this. ```scala scala> sql("CREATE TABLE t1(a int)") scala> val df = sql("select * from t1 b where exists (select * from t1 a)") scala> new org.apache.spark.sql.catalyst.SQLBuilder(df).toSQL java.lang.UnsupportedOperationException: empty.reduceLeft ``` ## How was this patch tested? Pass the Jenkins tests with a new test suite. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #14307 from dongjoon-hyun/SPARK-16672.
Diffstat (limited to 'sql/catalyst/src/main')
0 files changed, 0 insertions, 0 deletions