[ 
https://issues.apache.org/jira/browse/HIVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658126#action_12658126
 ] 

Prasad Chakka commented on HIVE-91:
-----------------------------------

yeah that is what i meant. optionally the user can give relative path to the 
table's location instead of the complete path.

alternatively, determining the partition path can be made customizable through 
a configurable class (the usual way extensions are done in Hadoop world). this 
path is also cleaner which leaves the implementation to the user who can 
customize it for each table differently.

if specifying location everytime a partition is created or loaded could be 
cumbersome then we can do the above. 

> Allow external tables with different partition directory structure
> ------------------------------------------------------------------
>
>                 Key: HIVE-91
>                 URL: https://issues.apache.org/jira/browse/HIVE-91
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Metastore
>            Reporter: Johan Oskarsson
>            Assignee: Johan Oskarsson
>            Priority: Minor
>
> A lot of users have datasets in a directory structures similar to this in 
> hdfs: /dataset/yyyy/MM/dd/<one or more files>
> Instead of loading these into Hive the normal way it would be useful to 
> create an external table with the /dataset location and then one partition 
> per yyyy/mm/dd. This would require the partition "naming to 
> directory"-function to be made more flexible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to