[ https://issues.apache.org/jira/browse/SPARK-16850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403449#comment-15403449 ]
Apache Spark commented on SPARK-16850: -------------------------------------- User 'petermaxlee' has created a pull request for this issue: 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 > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org