hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-7695) hive stats issue when insert query is appending data into table
Date Tue, 12 Aug 2014 20:08:12 GMT
Thejas M Nair created HIVE-7695:
-----------------------------------

             Summary: hive stats issue when insert query is appending data into table
                 Key: HIVE-7695
                 URL: https://issues.apache.org/jira/browse/HIVE-7695
             Project: Hive
          Issue Type: Bug
          Components: Statistics
            Reporter: Thejas M Nair


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

{code}
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
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message