You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/05/12 20:40:01 UTC

[jira] [Created] (SPARK-7569) Improve error for binary expressions

Michael Armbrust created SPARK-7569:
---------------------------------------

             Summary: Improve error for binary expressions
                 Key: SPARK-7569
                 URL: https://issues.apache.org/jira/browse/SPARK-7569
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Michael Armbrust
            Assignee: Michael Armbrust
            Priority: Critical


This is not a great error:
{code}
scala> Seq((1,1)).toDF("a", "b").select(lit(1) + new java.sql.Date(1)) 
org.apache.spark.sql.AnalysisException: invalid expression (1 + 0) between Literal 1, IntegerType and Literal 0, DateType;
{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