You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kent Yao (Jira)" <ji...@apache.org> on 2020/12/22 03:13:00 UTC
[jira] [Created] (SPARK-33876) Add length-check for reading
char/varchar from tables w/ a external location
Kent Yao created SPARK-33876:
--------------------------------
Summary: 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
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