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:36:20 UTC
[jira] [Updated] (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 updated SPARK-16850:
--------------------------------
Assignee: Peter Lee
> 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
> Assignee: 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