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

INSERT INTO data on S3 is replacing the old rows with the new ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.3.0
    • Hive
    • None

    Description

      Any INSERT INTO statement run on S3 tables and when the scratch directory is saved on S3 is deleting old rows of the table.

      hive> set hive.blobstore.use.blobstore.as.scratchdir=true;
      
      hive> create table t1 (id int, name string) location 's3a://spena-bucket/t1';
      
      hive> insert into table t1 values (1,'name1');
      
      hive> select * from t1;
      1       name1
      
      hive> insert into table t1 values (2,'name2');
      
      hive> select * from t1;
      2       name2
      

      Attachments

        1. HIVE-15199.9.patch
          16 kB
          Sergio Peña
        2. HIVE-15199.8.patch
          20 kB
          Sergio Peña
        3. HIVE-15199.10.patch
          16 kB
          Sergio Peña

        Issue Links

          Activity

            People

              spena Sergio Peña
              spena Sergio Peña
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: