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

Yuming Wang updated SPARK-31834:
--------------------------------
    Description: 

{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}


> 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
>            Priority: Major
>
> {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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to