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 2015/05/12 20:41:05 UTC
[jira] [Commented] (SPARK-7569) Improve error for binary
expressions
[ https://issues.apache.org/jira/browse/SPARK-7569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14540440#comment-14540440 ]
Apache Spark commented on SPARK-7569:
-------------------------------------
User 'marmbrus' has created a pull request for this issue:
https://github.com/apache/spark/pull/6089
> 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