You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2016/08/02 11:35:21 UTC
[jira] [Resolved] (SPARK-16850) Improve error message for
greatest/least
[ https://issues.apache.org/jira/browse/SPARK-16850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-16850.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Issue resolved by pull request 14453
[https://github.com/apache/spark/pull/14453]
> Improve error message for greatest/least
> ----------------------------------------
>
> Key: SPARK-16850
> URL: https://issues.apache.org/jira/browse/SPARK-16850
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Peter Lee
> Fix For: 2.1.0
>
>
> Greatest/least function does not have the most friendly error message for data types:
> Error in SQL statement: AnalysisException: cannot resolve 'greatest(CAST(1.0 AS DECIMAL(2,1)), "1.0")' due to data type mismatch: The expressions should all have the same type, got GREATEST (ArrayBuffer(DecimalType(2,1), StringType)).; line 1 pos 7
> We should report the human readable data type instead, rather than having "ArrayBuffer" and "StringType".
--
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