hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasanth kumar RJ (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7695) hive stats issue when insert query is appending data into table
Date Thu, 02 Oct 2014 05:47:35 GMT

    [ https://issues.apache.org/jira/browse/HIVE-7695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156112#comment-14156112
] 

Vasanth kumar RJ commented on HIVE-7695:
----------------------------------------

+1

> 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: Logical Optimizer, Statistics
>    Affects Versions: 0.13.0, 0.13.1
>            Reporter: Thejas M Nair
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-7695-test.patch, HIVE-7695.1.patch, HIVE-7695.2.patch, HIVE-7695.3.patch,
HIVE-7695.4.patch, tests.patch
>
>
> 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.3.4#6332)

Mime
View raw message