You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2016/02/18 16:50:18 UTC

[jira] [Commented] (HIVE-13050) The row count is not correct after changing partition location to point to another partition location

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

Aihua Xu commented on HIVE-13050:
---------------------------------

Seems we assume one partition for each location when we submit a MR job. Change it to improvement rather than bug.

> The row count is not correct after changing partition location to point to another partition location
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-13050
>                 URL: https://issues.apache.org/jira/browse/HIVE-13050
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 2.1.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>
> {noformat}
> CREATE  TABLE test  (s STRING) PARTITIONED BY (p SMALLINT) location 'data/test';
> INSERT INTO test PARTITION (`p`=1) VALUES ("v1");
> INSERT INTO test PARTITION (`p`=2) VALUES ("v2");
> ALTER TABLE test PARTITION (`p`=2) SET LOCATION '/data/test/p=1';
> {noformat}
> {{select * from test;}} shows 2 rows while {{SELECT count(*) FROM test;}} shows 1.
> That is inconsistent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)