[ https://issues.apache.org/jira/browse/HIVE-14511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417738#comment-15417738 ]
Subramanyam Pattipaka commented on HIVE-14511: ---------------------------------------------- [~pxiong], As your change stops at depth same as number of partition columns, your current code has a bug at if (!directoryFound && maxDepth == 0) { This again assumes that you don't have directory at maxDepth. You are terminating your search here anyway. Any path you find at this level will qualify to be a partition. I think you should remove check !directoryFound. Same at other locations. > Improve MSCK for partitioned table to deal with special cases > ------------------------------------------------------------- > > Key: HIVE-14511 > URL: https://issues.apache.org/jira/browse/HIVE-14511 > Project: Hive > Issue Type: Sub-task > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Attachments: HIVE-14511.01.patch > > > Some users will have a folder rather than a file under the last partition > folder. However, msck is going to search for the leaf folder rather than the > last partition folder. We need to improve that. -- This message was sent by Atlassian JIRA (v6.3.4#6332)