deniskuzZ commented on code in PR #5991:
URL: https://github.com/apache/hive/pull/5991#discussion_r2258231109


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PartitionManagementTask.java:
##########
@@ -91,43 +91,46 @@ public void run() {
       String qualifiedTableName = null;
       IMetaStoreClient msc = null;
       try {
-        msc = new HiveMetaStoreClient(conf);
-        String catalogName = MetastoreConf.getVar(conf, 
MetastoreConf.ConfVars.PARTITION_MANAGEMENT_CATALOG_NAME);
-        String dbPattern = MetastoreConf.getVar(conf, 
MetastoreConf.ConfVars.PARTITION_MANAGEMENT_DATABASE_PATTERN);
-        String tablePattern = MetastoreConf.getVar(conf, 
MetastoreConf.ConfVars.PARTITION_MANAGEMENT_TABLE_PATTERN);
-        String tableTypes = MetastoreConf.getVar(conf, 
MetastoreConf.ConfVars.PARTITION_MANAGEMENT_TABLE_TYPES);
-        List<TableName> candidates =
-            new TableFetcher.Builder(msc, catalogName, dbPattern, 
tablePattern).tableTypes(tableTypes)
-                .tableCondition(
-                    hive_metastoreConstants.HIVE_FILTER_FIELD_PARAMS + 
"discover__partitions like \"true\" ")
-                .build()
-                .getTables();
-
-        if (candidates.isEmpty()) {
-          LOG.info("Got empty table list in catalog: {}, dbPattern: {}", 
catalogName, dbPattern);
-          return;
+        if (MetastoreConf.getTimeVar(conf, 
MetastoreConf.ConfVars.PARTITION_MANAGEMENT_TASK_FREQUENCY,

Review Comment:
   This seems redundant when we already have 
https://github.com/apache/hive/pull/5991/files#diff-3ff73ebef2cdbb1f6cd76a03cdc7683ac0aa52285185ebf82dc9f66ccc241997R117-R120,
 isn't it?



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

Reply via email to