[ https://issues.apache.org/jira/browse/HIVE-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866964#comment-13866964 ]
Ashutosh Chauhan commented on HIVE-5032: ---------------------------------------- Patch does seem to fix the issue at end. But correct solution would be to have pathToPartitionInfo map to be of type Map<Path,PartitionDesc> and than do search using path.getParent() instead of fiddling with indexOf("/"). Thats cleaner solution and we can avoid all these special casing for corner cases. Ofcourse, this is bigger change compared to current patch. I wonder, if you want to do it that way? > Enable hive creating external table at the root directory of DFS > ---------------------------------------------------------------- > > Key: HIVE-5032 > URL: https://issues.apache.org/jira/browse/HIVE-5032 > Project: Hive > Issue Type: Bug > Reporter: Shuaishuai Nie > Assignee: Shuaishuai Nie > Attachments: HIVE-5032.1.patch, HIVE-5032.2.patch, HIVE-5032.3.patch > > > Creating external table using HIVE with location point to the root directory > of DFS will fail because the function > HiveFileFormatUtils#doGetPartitionDescFromPath treat authority of the path > the same as folder and cannot find a match in the "pathToPartitionInfo" table > when doing prefix match. -- This message was sent by Atlassian JIRA (v6.1.5#6160)