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

Stats of transactional table updated when transaction is rolled back

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Statistics
    • None

    Description

      set hive.support.concurrency=true;
      set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
      
      create table t1(a int) stored as orc TBLPROPERTIES ('transactional'='true');
      
      describe formatted t1;
      
      -- simulate rollback
      set hive.test.rollbacktxn=true;
      
      insert into t1(a) values (1),(2),(3);
      
      describe formatted t1;
      
      select count(1) from t1;
      
      POSTHOOK: query: describe formatted t1
      ...
      	numFiles            	1                   
      	numRows             	3                   
      	rawDataSize         	0                   
      	totalSize           	632                 
      	transactional       	true                
      ...
      POSTHOOK: query: select count(1) from t1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      0
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kkasa Krisztian Kasa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: