Yuming Wang created SPARK-22893: ----------------------------------- Summary: Unified the data type mismatch message Key: SPARK-22893 URL: https://issues.apache.org/jira/browse/SPARK-22893 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 2.3.0 Reporter: Yuming Wang
{noformat} spark-sql> select cast(1 as binary); Error in query: cannot resolve 'CAST(1 AS BINARY)' due to data type mismatch: cannot cast IntegerType to BinaryType; line 1 pos 7; {noformat} We should use {{dataType.simpleString}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org