Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23586

load data overwrite into bucket table failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.1.0, 3.1.2, 4.0.0
    • None
    • HiveServer2

    Description

      load data overwrite into bucket table is failed if filename is not like 000000_0, but insert new data in the table.

       

      for example:

      CREATE EXTERNAL TABLE IF NOT EXISTS test_hive2 (name string,account string) PARTITIONED BY (logdate string) CLUSTERED BY (account) INTO 4 BUCKETS row format delimited fields terminated by '|' STORED AS textfile;
      load data inpath 'hdfs://hacluster/tmp/zltest' overwrite into table default.test_hive2 partition (logdate='20200508');

      load data inpath 'hdfs://hacluster/tmp/zltest' overwrite into table default.test_hive2 partition (logdate='20200508');// should overwrite but insert new data

      Attachments

        1. image-2020-06-01-21-40-21-726.png
          9 kB
          zhaolong
        2. image-2020-06-01-21-41-28-732.png
          11 kB
          zhaolong
        3. HIVE-23586.01.patch
          1 kB
          zhaolong

        Issue Links

          Activity

            People

              fsilent zhaolong
              fsilent zhaolong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m