You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/05/17 16:15:00 UTC
[jira] [Resolved] (SPARK-35359) Insert data with char/varchar
datatype will fail when data length exceed length limitation
[ https://issues.apache.org/jira/browse/SPARK-35359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-35359.
---------------------------------
Fix Version/s: 3.1.2
3.2.0
Resolution: Fixed
Issue resolved by pull request 32501
[https://github.com/apache/spark/pull/32501]
> Insert data with char/varchar datatype will fail when data length exceed length limitation
> ------------------------------------------------------------------------------------------
>
> Key: SPARK-35359
> URL: https://issues.apache.org/jira/browse/SPARK-35359
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.1.1
> Reporter: YuanGuanhu
> Priority: Major
> Fix For: 3.2.0, 3.1.2
>
>
> In Spark3.1.1 have support Char/Varchar type, but when insert data with char/varchar datatype will fail when data length exceed length limitation even when spark.sql.legacy.charVarcharAsString is true.
> reproduce:
> create table chartb01(a char(3));
> insert into chartb01 select 'aaaaa';
--
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