[
https://issues.apache.org/jira/browse/SPARK-22893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16303353#comment-16303353
]
Apache Spark commented on SPARK-22893:
--------------------------------------
User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/20079
> 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
> Assignee: Yuming Wang
> Fix For: 2.3.0
>
>
> {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]