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

hive stats issue when insert query is appending data into table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.13.1
    • 0.14.0
    • None

    Description

      When 'insert' is used to append (not overrite), the stats don't seem to get updated.

      set hive.compute.query.using.stats=true;
       set hive.stats.autogather=true;         
      //insert 4 rows
      insert into table t2 select * from t1;
      select count(*) from t2;
      4
      //insert 4 again (appending instead of overrite)
      insert into table t2 select * from t1;
      select count(*) from t2;
      4
      select * from t2;    
      1
      2
      3
      4
      1
      2
      3
      4
      

      Attachments

        1. HIVE-7695-test.patch
          2 kB
          Vasanth kumar RJ
        2. tests.patch
          3 kB
          Ashutosh Chauhan
        3. HIVE-7695.1.patch
          12 kB
          Ashutosh Chauhan
        4. HIVE-7695.2.patch
          11 kB
          Ashutosh Chauhan
        5. HIVE-7695.3.patch
          11 kB
          Ashutosh Chauhan
        6. HIVE-7695.4.patch
          70 kB
          Ashutosh Chauhan

        Activity

          People

            ashutoshc Ashutosh Chauhan
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: