You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/06/02 12:08:00 UTC

[jira] [Resolved] (SPARK-31834) Improve error message for incompatible data types

     [ https://issues.apache.org/jira/browse/SPARK-31834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-31834.
----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 28654
[https://github.com/apache/spark/pull/28654]

> Improve error message for incompatible data types
> -------------------------------------------------
>
>                 Key: SPARK-31834
>                 URL: https://issues.apache.org/jira/browse/SPARK-31834
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Assignee: Zhu, Lipeng
>            Priority: Major
>             Fix For: 3.0.0
>
>
> {code:java}
> spark-sql> create table SPARK_31834(a int) using parquet;
> spark-sql> insert into SPARK_31834 select '1';
> Error in query: Cannot write incompatible data to table '`default`.`spark_31834`':
> - Cannot safely cast 'a': StringType to IntegerType;
> spark-sql>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org