You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Paul Yang (JIRA)" <ji...@apache.org> on 2010/02/04 22:33:29 UTC

[jira] Created: (HIVE-1132) Add metastore API method to get partition by name

Add metastore API method to get partition by name
-------------------------------------------------

                 Key: HIVE-1132
                 URL: https://issues.apache.org/jira/browse/HIVE-1132
             Project: Hadoop Hive
          Issue Type: New Feature
    Affects Versions: 0.6.0
            Reporter: Paul Yang
            Assignee: Paul Yang


Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.

However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Updated: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Yang updated HIVE-1132:
----------------------------

    Component/s: Metastore

> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Commented: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829921#action_12829921 ] 

Zheng Shao commented on HIVE-1132:
----------------------------------

+1. Will test and commit.


> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Updated: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Yang updated HIVE-1132:
----------------------------

    Status: Patch Available  (was: Open)

> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Updated: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-1132:
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.6.0
     Release Note: HIVE-1132. Add metastore API method to get partition by name. (Paul Yang via zshao)
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed. Thanks Paul!

> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Updated: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1132:
---------------------------------

    Affects Version/s:     (was: 0.6.0)
         Release Note:   (was: HIVE-1132. Add metastore API method to get partition by name. (Paul Yang via zshao))

> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hive
>          Issue Type: New Feature
>          Components: Metastore
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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


[jira] Updated: (HIVE-1132) Add metastore API method to get partition by name

Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Yang updated HIVE-1132:
----------------------------

    Attachment: HIVE-1132.1.patch

> Add metastore API method to get partition by name
> -------------------------------------------------
>
>                 Key: HIVE-1132
>                 URL: https://issues.apache.org/jira/browse/HIVE-1132
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>         Attachments: HIVE-1132.1.patch
>
>
> Currently, get_partition_names returns the partition names in an escaped form  ie 'ds=2010-02-03/ts=2010-02-03 18%3A49%3A26/offset=0-3184760670135/instance=nfs/host=nfs'. In this case, the colons have been replaced by %3A. The escaped form is necessary because the partition column values could contain symbols such as '=' or '/' that would interfere with parsing or have some other unwanted effects. See HIVE-883.
> However, there is no way to directly retrieve the partition using the escaped name because get_partition accepts a List<String> that requires the partition column values to be in their original unescaped form. So the proposal is to add get_partition_by_name() that directly accepts the partition name in the escaped form.

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