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

The row count is not correct after changing partition location to point to another partition location

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      None

      Description

      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';
      

      select * from test; shows 2 rows while SELECT count FROM test; shows 1.

      That is inconsistent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aihuaxu Aihua Xu
                Reporter:
                aihuaxu Aihua Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: