[
https://issues.apache.org/jira/browse/HIVE-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866974#comment-13866974
]
Ashutosh Chauhan commented on HIVE-5032:
----------------------------------------
Actually smaller change which will fix this issue is to use dir.getParent() for
incoming path, instead of changing it into string representation and than use
indexOf(). Thats a local change without needing to change signature of
pathToPartitionInfo. Thats a cleaner solution.
> 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)