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

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              Qin Yao Kent Yao
              Reporter:
              Qin Yao Kent Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: