[
https://issues.apache.org/jira/browse/HIVE-13050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213073#comment-15213073
]
Aihua Xu commented on HIVE-13050:
---------------------------------
[~lskuff] Yeah, that's a concern that it will introduce the incompatibility.
The only problem is the inconsistency that {{SELECT *}} and {{SELECT
count(*)}} will be inconsistent as the example I listed in the description. We
should be one way or the other, do you agree?
> 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)