You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/12/22 04:25:00 UTC
[jira] [Assigned] (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 ]
Apache Spark reassigned SPARK-33876:
------------------------------------
Assignee: Apache Spark
> 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: Apache Spark
> Priority: Major
>
> 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