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/07/21 20:11:20 UTC

[jira] [Created] (SPARK-16672) SQLBuilder

Dongjoon Hyun created SPARK-16672:
-------------------------------------

             Summary: SQLBuilder 
                 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