[ https://issues.apache.org/jira/browse/SPARK-33876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253271#comment-17253271 ]
Apache Spark commented on SPARK-33876: -------------------------------------- User 'yaooqinn' has created a pull request for this issue: 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org