diff --git hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java index 8992d552c..891322a 100644 --- hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java +++ hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java @@ -90,7 +90,6 @@ private static HiveConf replicationTargetHCatConf; private static SecurityManager securityManager; private static boolean useExternalMS = false; - private static boolean useExternalMSForReplication = false; public static class RunMS implements Runnable { @@ -1056,14 +1055,14 @@ public void testTableSchemaPropagation() throws Exception { HCatTable targetTable = targetMetaStore.deserializeTable(tableStringRep); assertEquals("Table after deserialization should have been identical to sourceTable.", - sourceTable.diff(targetTable), HCatTable.NO_DIFF); + HCatTable.NO_DIFF, sourceTable.diff(targetTable)); // Create table on Target. targetMetaStore.createTable(HCatCreateTableDesc.create(targetTable).build()); // Verify that the created table is identical to sourceTable. targetTable = targetMetaStore.getTable(dbName, tableName); assertEquals("Table after deserialization should have been identical to sourceTable.", - sourceTable.diff(targetTable), HCatTable.NO_DIFF); + HCatTable.NO_DIFF, sourceTable.diff(targetTable)); // Modify sourceTable. List newColumnSchema = new ArrayList(columnSchema); @@ -1098,7 +1097,7 @@ public void testTableSchemaPropagation() throws Exception { targetTable = targetMetaStore.getTable(dbName, tableName); assertEquals("After propagating schema changes, source and target tables should have been equivalent.", - targetTable.diff(sourceTable), HCatTable.NO_DIFF); + HCatTable.NO_DIFF, targetTable.diff(sourceTable)); } catch (Exception unexpected) { @@ -1157,14 +1156,14 @@ public void testPartitionRegistrationWithCustomSchema() throws Exception { sourceMetaStore.addPartition(HCatAddPartitionDesc.create(sourcePartition_1).build()); assertEquals("Unexpected number of partitions. ", - sourceMetaStore.getPartitions(dbName, tableName).size(), 1); + 1, sourceMetaStore.getPartitions(dbName, tableName).size()); // Verify that partition_1 was added correctly, and properties were inherited from the HCatTable. HCatPartition addedPartition_1 = sourceMetaStore.getPartition(dbName, tableName, partitionSpec_1); - assertEquals("Column schema doesn't match.", addedPartition_1.getColumns(), sourceTable.getCols()); - assertEquals("InputFormat doesn't match.", addedPartition_1.getInputFormat(), sourceTable.getInputFileFormat()); - assertEquals("OutputFormat doesn't match.", addedPartition_1.getOutputFormat(), sourceTable.getOutputFileFormat()); - assertEquals("SerDe doesn't match.", addedPartition_1.getSerDe(), sourceTable.getSerdeLib()); - assertEquals("SerDe params don't match.", addedPartition_1.getSerdeParams(), sourceTable.getSerdeParams()); + assertEquals("Column schema doesn't match.", sourceTable.getCols(), addedPartition_1.getColumns()); + assertEquals("InputFormat doesn't match.", sourceTable.getInputFileFormat(), addedPartition_1.getInputFormat()); + assertEquals("OutputFormat doesn't match.", sourceTable.getOutputFileFormat(), addedPartition_1.getOutputFormat()); + assertEquals("SerDe doesn't match.", sourceTable.getSerdeLib(), addedPartition_1.getSerDe()); + assertEquals("SerDe params don't match.", sourceTable.getSerdeParams(), addedPartition_1.getSerdeParams()); // Replicate table definition. @@ -1177,8 +1176,7 @@ public void testPartitionRegistrationWithCustomSchema() throws Exception { targetMetaStore.createTable(HCatCreateTableDesc.create(targetTable).build()); targetTable = targetMetaStore.getTable(dbName, tableName); - assertEquals("Created table doesn't match the source.", - targetTable.diff(sourceTable), HCatTable.NO_DIFF); + assertEquals("Created table doesn't match the source.", HCatTable.NO_DIFF, targetTable.diff(sourceTable)); // Modify Table schema at the source. List newColumnSchema = new ArrayList(columnSchema); @@ -1215,7 +1213,7 @@ public void testPartitionRegistrationWithCustomSchema() throws Exception { List targetPartitions = targetMetaStore.getPartitions(dbName, tableName); - assertEquals("Expected the same number of partitions. ", targetPartitions.size(), sourcePartitions.size()); + assertEquals("Expected the same number of partitions. ", sourcePartitions.size(), targetPartitions.size()); for (int i=0; i newColumnSchema = new ArrayList(columnSchema); diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java index 12f3f16..5bc7b3a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java @@ -185,11 +185,13 @@ public static boolean updateTableStatsFast(Database db, Table tbl, Warehouse wh, public static boolean updateTableStatsFast(Database db, Table tbl, Warehouse wh, boolean madeDir, boolean forceRecompute) throws MetaException { - FileStatus[] fileStatuses = {}; - if (tbl.getPartitionKeysSize() == 0) { // Update stats only when unpartitioned - fileStatuses = wh.getFileStatusesForUnpartitionedTable(db, tbl); + if (tbl.getPartitionKeysSize() == 0) { + // Update stats only when unpartitioned + FileStatus[] fileStatuses = wh.getFileStatusesForUnpartitionedTable(db, tbl); + return updateTableStatsFast(tbl, fileStatuses, madeDir, forceRecompute); + } else { + return false; } - return updateTableStatsFast(tbl, fileStatuses, madeDir, forceRecompute); } /** @@ -216,6 +218,11 @@ public static boolean updateTableStatsFast(Table tbl, } } + if (fileStatus == null || fileStatus.length == 0) { + // no files given, don't write zero values for fast stats + return false; + } + boolean updated = false; if (forceRecompute || params == null || diff --git ql/src/test/results/clientnegative/unset_table_property.q.out ql/src/test/results/clientnegative/unset_table_property.q.out index 158ed38..0f355c6 100644 --- ql/src/test/results/clientnegative/unset_table_property.q.out +++ ql/src/test/results/clientnegative/unset_table_property.q.out @@ -18,15 +18,9 @@ PREHOOK: query: SHOW TBLPROPERTIES testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 c 3 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### FAILED: SemanticException [Error 10215]: Please use the following syntax if not sure whether the property existed or not: ALTER TABLE tableName UNSET TBLPROPERTIES IF EXISTS (key1, key2, ...) The following property x does not exist in testtable diff --git ql/src/test/results/clientpositive/alter_file_format.q.out ql/src/test/results/clientpositive/alter_file_format.q.out index c9e88f8..577cf15 100644 --- ql/src/test/results/clientpositive/alter_file_format.q.out +++ ql/src/test/results/clientpositive/alter_file_format.q.out @@ -62,12 +62,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -106,12 +100,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -150,12 +138,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -194,12 +176,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -238,12 +214,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -282,12 +252,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information diff --git ql/src/test/results/clientpositive/alter_skewed_table.q.out ql/src/test/results/clientpositive/alter_skewed_table.q.out index 03904e6..7b74aeb 100644 --- ql/src/test/results/clientpositive/alter_skewed_table.q.out +++ ql/src/test/results/clientpositive/alter_skewed_table.q.out @@ -62,12 +62,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -160,12 +154,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -254,12 +242,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information diff --git ql/src/test/results/clientpositive/alter_table_not_sorted.q.out ql/src/test/results/clientpositive/alter_table_not_sorted.q.out index 40974e4..53ad81c 100644 --- ql/src/test/results/clientpositive/alter_table_not_sorted.q.out +++ ql/src/test/results/clientpositive/alter_table_not_sorted.q.out @@ -63,14 +63,8 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false SORTBUCKETCOLSPREFIX TRUE #### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 -#### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe diff --git ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out index a5df511..e56e2ac 100644 --- ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out +++ ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out @@ -79,12 +79,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -128,12 +122,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -184,12 +172,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -233,12 +215,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information @@ -281,12 +257,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information diff --git ql/src/test/results/clientpositive/create_like.q.out ql/src/test/results/clientpositive/create_like.q.out index a373178..db27545 100644 --- ql/src/test/results/clientpositive/create_like.q.out +++ ql/src/test/results/clientpositive/create_like.q.out @@ -339,16 +339,10 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false avro.schema.literal {\n \"namespace\": \"testing.hive.avro.serde\",\n \"name\": \"doctors\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\":\"number\",\n \"type\":\"int\",\n \"doc\":\"Order of playing the role\"\n },\n {\n \"name\":\"first_name\",\n \"type\":\"string\",\n \"doc\":\"first name of actor playing role\"\n },\n {\n \"name\":\"last_name\",\n \"type\":\"string\",\n \"doc\":\"last name of actor playing role\"\n }\n ]\n} k1 v1 k2 v2 #### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 -#### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.avro.AvroSerDe diff --git ql/src/test/results/clientpositive/describe_comment_nonascii.q.out ql/src/test/results/clientpositive/describe_comment_nonascii.q.out index b202e65..8566217 100644 --- ql/src/test/results/clientpositive/describe_comment_nonascii.q.out +++ ql/src/test/results/clientpositive/describe_comment_nonascii.q.out @@ -53,12 +53,6 @@ Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: - COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### - numFiles 0 - numRows -1 - rawDataSize -1 - totalSize 0 #### A masked pattern was here #### # Storage Information diff --git ql/src/test/results/clientpositive/show_create_table_alter.q.out ql/src/test/results/clientpositive/show_create_table_alter.q.out index ddb4c27..d1c1a53 100644 --- ql/src/test/results/clientpositive/show_create_table_alter.q.out +++ ql/src/test/results/clientpositive/show_create_table_alter.q.out @@ -70,14 +70,8 @@ OUTPUTFORMAT LOCATION #### A masked pattern was here #### TBLPROPERTIES ( - 'COLUMN_STATS_ACCURATE'='false', 'EXTERNAL'='FALSE', #### A masked pattern was here #### - 'numFiles'='0', - 'numRows'='-1', - 'rawDataSize'='-1', - 'totalSize'='0', -#### A masked pattern was here #### PREHOOK: query: -- Alter the table comment, change the EXTERNAL property back and test SHOW CREATE TABLE on the change. ALTER TABLE tmp_showcrt1 SET TBLPROPERTIES ('comment'='changed comment', 'EXTERNAL'='TRUE') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -112,12 +106,6 @@ OUTPUTFORMAT LOCATION #### A masked pattern was here #### TBLPROPERTIES ( - 'COLUMN_STATS_ACCURATE'='false', -#### A masked pattern was here #### - 'numFiles'='0', - 'numRows'='-1', - 'rawDataSize'='-1', - 'totalSize'='0', #### A masked pattern was here #### PREHOOK: query: -- Change the 'SORTBUCKETCOLSPREFIX' property and test SHOW CREATE TABLE. The output should not change. ALTER TABLE tmp_showcrt1 SET TBLPROPERTIES ('SORTBUCKETCOLSPREFIX'='FALSE') @@ -153,12 +141,6 @@ OUTPUTFORMAT LOCATION #### A masked pattern was here #### TBLPROPERTIES ( - 'COLUMN_STATS_ACCURATE'='false', -#### A masked pattern was here #### - 'numFiles'='0', - 'numRows'='-1', - 'rawDataSize'='-1', - 'totalSize'='0', #### A masked pattern was here #### PREHOOK: query: -- Alter the storage handler of the table, and test SHOW CREATE TABLE. ALTER TABLE tmp_showcrt1 SET TBLPROPERTIES ('storage_handler'='org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler') @@ -194,12 +176,6 @@ WITH SERDEPROPERTIES ( LOCATION #### A masked pattern was here #### TBLPROPERTIES ( - 'COLUMN_STATS_ACCURATE'='false', -#### A masked pattern was here #### - 'numFiles'='0', - 'numRows'='-1', - 'rawDataSize'='-1', - 'totalSize'='0', #### A masked pattern was here #### PREHOOK: query: DROP TABLE tmp_showcrt1 PREHOOK: type: DROPTABLE diff --git ql/src/test/results/clientpositive/show_create_table_serde.q.out ql/src/test/results/clientpositive/show_create_table_serde.q.out index a794bcc..44414b2 100644 --- ql/src/test/results/clientpositive/show_create_table_serde.q.out +++ ql/src/test/results/clientpositive/show_create_table_serde.q.out @@ -40,12 +40,6 @@ OUTPUTFORMAT LOCATION #### A masked pattern was here #### TBLPROPERTIES ( - 'COLUMN_STATS_ACCURATE'='false', -#### A masked pattern was here #### - 'numFiles'='0', - 'numRows'='-1', - 'rawDataSize'='-1', - 'totalSize'='0', #### A masked pattern was here #### PREHOOK: query: DROP TABLE tmp_showcrt1 PREHOOK: type: DROPTABLE diff --git ql/src/test/results/clientpositive/show_tblproperties.q.out ql/src/test/results/clientpositive/show_tblproperties.q.out index c206c60..d1e0fb9 100644 --- ql/src/test/results/clientpositive/show_tblproperties.q.out +++ ql/src/test/results/clientpositive/show_tblproperties.q.out @@ -36,14 +36,9 @@ PREHOOK: query: show tblproperties tmpfoo PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: show tblproperties tmpfoo POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false bar bar value #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 tmp true -totalSize 0 #### A masked pattern was here #### PREHOOK: query: show tblproperties tmpfoo("bar") PREHOOK: type: SHOW_TBLPROPERTIES @@ -54,14 +49,9 @@ PREHOOK: query: show tblproperties default.tmpfoo PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: show tblproperties default.tmpfoo POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false bar bar value #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 tmp true -totalSize 0 #### A masked pattern was here #### PREHOOK: query: show tblproperties default.tmpfoo("bar") PREHOOK: type: SHOW_TBLPROPERTIES @@ -110,14 +100,9 @@ PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: -- from db1 to default db show tblproperties default.tmpfoo POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false bar bar value #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 tmp true -totalSize 0 #### A masked pattern was here #### PREHOOK: query: show tblproperties default.tmpfoo("bar") PREHOOK: type: SHOW_TBLPROPERTIES @@ -130,14 +115,9 @@ PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: -- from db1 to db1 show tblproperties tmpfoo POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false bar bar value1 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 tmp true1 -totalSize 0 #### A masked pattern was here #### PREHOOK: query: show tblproperties tmpfoo("bar") PREHOOK: type: SHOW_TBLPROPERTIES @@ -156,14 +136,9 @@ PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: -- from default to db1 show tblproperties db1.tmpfoo POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false bar bar value1 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 tmp true1 -totalSize 0 #### A masked pattern was here #### PREHOOK: query: show tblproperties db1.tmpfoo("bar") PREHOOK: type: SHOW_TBLPROPERTIES diff --git ql/src/test/results/clientpositive/unset_table_view_property.q.out ql/src/test/results/clientpositive/unset_table_view_property.q.out index 8249246..aec89bc 100644 --- ql/src/test/results/clientpositive/unset_table_view_property.q.out +++ ql/src/test/results/clientpositive/unset_table_view_property.q.out @@ -31,15 +31,9 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 c 3 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: -- UNSET all the properties ALTER TABLE vt.testTable UNSET TBLPROPERTIES ('a', 'c') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -54,12 +48,6 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 #### A masked pattern was here #### PREHOOK: query: ALTER TABLE vt.testTable SET TBLPROPERTIES ('a'='1', 'c'='3', 'd'='4') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -73,16 +61,10 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 c 3 d 4 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: -- UNSET a subset of the properties ALTER TABLE vt.testTable UNSET TBLPROPERTIES ('a', 'd') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -97,14 +79,8 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false c 3 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: -- the same property being UNSET multiple times ALTER TABLE vt.testTable UNSET TBLPROPERTIES ('c', 'c', 'c') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -119,12 +95,6 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false -#### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 #### A masked pattern was here #### PREHOOK: query: ALTER TABLE vt.testTable SET TBLPROPERTIES ('a'='1', 'b' = '2', 'c'='3', 'd'='4') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -138,17 +108,11 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 b 2 c 3 d 4 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: -- UNSET a subset of the properties and some non-existed properties using IF EXISTS ALTER TABLE vt.testTable UNSET TBLPROPERTIES IF EXISTS ('b', 'd', 'b', 'f') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -163,15 +127,9 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 c 3 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: -- UNSET a subset of the properties and some non-existed properties using IF EXISTS ALTER TABLE vt.testTable UNSET TBLPROPERTIES IF EXISTS ('b', 'd', 'c', 'f', 'x', 'y', 'z') PREHOOK: type: ALTERTABLE_PROPERTIES @@ -186,14 +144,8 @@ PREHOOK: query: SHOW TBLPROPERTIES vt.testTable PREHOOK: type: SHOW_TBLPROPERTIES POSTHOOK: query: SHOW TBLPROPERTIES vt.testTable POSTHOOK: type: SHOW_TBLPROPERTIES -COLUMN_STATS_ACCURATE false a 1 #### A masked pattern was here #### -numFiles 0 -numRows -1 -rawDataSize -1 -totalSize 0 -#### A masked pattern was here #### PREHOOK: query: DROP TABLE vt.testTable PREHOOK: type: DROPTABLE PREHOOK: Input: vt@testtable