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