commit beef95ebb9c42903e34ce3480e697d10a3ad3210 Author: David Lavati Date: Thu Jun 6 14:23:02 2019 +0200 HIVE-21831: Stats should be reset correctly during load of a partitioned ACID table Change-Id: Ib7ded14e7f010d90a6843435d276c5056b30bb67 diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index fad96f4d6b..2ae1db57aa 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -2189,7 +2189,7 @@ private Partition loadPartitionInternal(Path loadPath, Table tbl, Map rs = runStatementOnDriver("select count(*) from T"); + Assert.assertEquals("Rowcount of imported table", TestTxnCommands2.stringifyValues(rows), rs); + } + /** * test selective partitioned import where target table needs to be created. * export is made from acid table so that target table is created as acid diff --git a/ql/src/test/results/clientpositive/llap/mm_exim.q.out b/ql/src/test/results/clientpositive/llap/mm_exim.q.out index ee6cf06ea8..37d3952d37 100644 --- a/ql/src/test/results/clientpositive/llap/mm_exim.q.out +++ b/ql/src/test/results/clientpositive/llap/mm_exim.q.out @@ -386,7 +386,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} bucketing_version 2 numFiles 3 numPartitions 3