Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33876

Add length-check for reading char/varchar from tables w/ a external location

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      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

      Attachments

        Activity

          People

            Qin Yao Kent Yao 2
            Qin Yao Kent Yao 2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: