You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/07/21 20:16:20 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15388353#comment-15388353 ] 

Apache Spark commented on SPARK-16672:
--------------------------------------

User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/14307

> 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
>            Reporter: Dongjoon Hyun
>            Priority: Minor
>
> 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