Description
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".