You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Peter Lee (JIRA)" <ji...@apache.org> on 2016/08/02 06:16:20 UTC

[jira] [Created] (SPARK-16850) Improve error message for greatest/least

Peter Lee created SPARK-16850:
---------------------------------

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


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