You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2016/11/10 09:01:58 UTC
[jira] [Updated] (SPARK-16672) SQLBuilder should not raise
exceptions on EXISTS queries
[ https://issues.apache.org/jira/browse/SPARK-16672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-16672:
----------------------------------
Component/s: SQL
> SQLBuilder should not raise exceptions on EXISTS queries
> --------------------------------------------------------
>
> Key: SPARK-16672
> URL: https://issues.apache.org/jira/browse/SPARK-16672
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Minor
> Fix For: 2.0.1, 2.1.0
>
>
> Currently, `SQLBuilder` raises `empty.reduceLeft` exceptions on **unoptimized** `EXISTS` queries. We had better prevent this.
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org