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 2020/12/22 14:25:00 UTC
[jira] [Resolved] (SPARK-33876) Add length-check for reading
char/varchar from tables w/ a external location
[ https://issues.apache.org/jira/browse/SPARK-33876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-33876.
---------------------------------
Fix Version/s: 3.1.0
Resolution: Fixed
Issue resolved by pull request 30882
[https://github.com/apache/spark/pull/30882]
> Add length-check for reading char/varchar from tables w/ a external location
> ----------------------------------------------------------------------------
>
> Key: SPARK-33876
> URL: https://issues.apache.org/jira/browse/SPARK-33876
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Kent Yao
> Assignee: Kent Yao
> Priority: Major
> Fix For: 3.1.0
>
>
> spark-sql> INSERT INTO t2 VALUES ('1', 'b12345');
> Time taken: 0.141 seconds
> spark-sql> alter table t set location '/tmp/hive_one/t2';
> Time taken: 0.095 seconds
> spark-sql> select * from t;
> 1 b1234
> 1 a
> 1 b
> the above case should fail rather than implicitly applying truncation
--
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