[ https://issues.apache.org/jira/browse/HIVE-14511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417859#comment-15417859 ]
Pengcheng Xiong commented on HIVE-14511: ---------------------------------------- [~pattipaka], as you said, the {code} !directoryFound {code} is used to check if current folder is a leaf folder (which does not contain any folder). It was inherited from the original code. We need to discuss if your claim that "Any path you find at this level will qualify to be a partition." is valid to all the existing applications. For example, let assume that we only have 2 partition specifications, now we have /p1=1/p2=1/p3=1/file.txt, so you mean we should also add /p1=1/p2=1/p3=1 ? I think we should just ignore this according to my discussion with [~ashutoshc]. thanks. > 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)