[ https://issues.apache.org/jira/browse/HIVE-22957?focusedWorklogId=456544&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456544 ]
ASF GitHub Bot logged work on HIVE-22957: ----------------------------------------- Author: ASF GitHub Bot Created on: 09/Jul/20 10:56 Start Date: 09/Jul/20 10:56 Worklog Time Spent: 10m Work Description: shameersss1 commented on a change in pull request #1105: URL: https://github.com/apache/hive/pull/1105#discussion_r452134325 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreChecker.java ########## @@ -383,7 +375,29 @@ void findUnknownPartitions(Table table, Set<Path> partPaths, // now check the table folder and see if we find anything // that isn't in the metastore Set<Path> allPartDirs = new HashSet<Path>(); + Set<Path> partDirs = new HashSet<Path>(); + List<FieldSchema> partColumns = table.getPartitionKeys(); checkPartitionDirs(tablePath, allPartDirs, Collections.unmodifiableList(getPartColNames(table))); + + if (filterExp != null) { + PartitionExpressionProxy expressionProxy = createExpressionProxy(conf); + List<String> paritions = new ArrayList<>(); + for (Path path : allPartDirs) { + // remove the table's path from the partition path + // eg: <tablePath>/p1=1/p2=2/p3=3 ---> p1=1/p2=2/p3=3 + paritions.add(path.toString().substring(tablePath.toString().length() + 1)); Review comment: Fixed! ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 456544) Time Spent: 2h 50m (was: 2h 40m) > Support Partition Filtering In MSCK REPAIR TABLE Command > -------------------------------------------------------- > > Key: HIVE-22957 > URL: https://issues.apache.org/jira/browse/HIVE-22957 > Project: Hive > Issue Type: Improvement > Reporter: Syed Shameerur Rahman > Assignee: Syed Shameerur Rahman > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Attachments: Design Doc_ Partition Filtering In MSCK REPAIR > TABLE.pdf, HIVE-22957.01.patch, HIVE-22957.02.patch, HIVE-22957.03.patch > > Time Spent: 2h 50m > Remaining Estimate: 0h > > *Design Doc:* > [^Design Doc_ Partition Filtering In MSCK REPAIR TABLE.pdf] -- This message was sent by Atlassian Jira (v8.3.4#803005)