You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2020/05/27 07:32:00 UTC
[jira] [Updated] (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 ]
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org