wecharyu commented on code in PR #4744: URL: https://github.com/apache/hive/pull/4744#discussion_r1335202448
########## standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java: ########## @@ -643,14 +644,20 @@ public void testDirectSQLDropPartitionsCacheInSession() createPartitionedTable(false, false); // query the partitions with JDO List<Partition> partitions; - try(AutoCloseable c =deadline()) { + try(AutoCloseable c = deadline()) { partitions = objectStore.getPartitionsInternal(DEFAULT_CATALOG_NAME, DB1, TABLE1, 10, false, true); } Assert.assertEquals(3, partitions.size()); + try(AutoCloseable c = deadline()) { + List<List<ColumnStatistics>> colStats = objectStore.getPartitionColumnStatistics(DEFAULT_CATALOG_NAME, DB1, TABLE1, Review Comment: Add this query to avoid `PART_COL_STATS` table not found exception in direct SQL drop partitions. Not sure why `PART_COL_STATS` table will not be created without this pre-query. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org