hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1278) Partition name to values conversion conversion method
Date Thu, 25 Mar 2010 19:08:27 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Yang updated HIVE-1278:
----------------------------

    Attachment: HIVE-1278.1.patch

* Adds two functions, partition_name_to_values() and partition_name_to_spec()
* Since partition_name_to_values will probably be used with dynamic partitions, the semantics
of get_partition*_ps methods were changed to allow the size of the list of partition values
for filtering to be smaller than the number of partition columns. The unspecified cols will
be unrestricted.

i.e. now you can do this
{code}
// my_table is partitioned by ds and hr
vals = partition_name_to_values("ds=2010-03-03");
parts = get_partitions_ps("default", "my_table", values)
{code}

instead of 
{code}
vals = partition_name_to_values("ds=2010-03-03");
vals.add("");
parts = get_partitions_ps("default", "my_table", values)
{code}


> Partition name to values conversion conversion method
> -----------------------------------------------------
>
>                 Key: HIVE-1278
>                 URL: https://issues.apache.org/jira/browse/HIVE-1278
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>         Attachments: HIVE-1278.1.patch
>
>
> When writing scripts using the Thrift client, it'd useful to be able to convert from
the partition name to the partition values array. e.g.
> ds=2010-03-03/hr=12 => ["2010-03-03", "12"]
> ds=2008-07-01 14%3A13%3A12/hr=14 => ["2008-08-01 14:13:12", "14"]

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


Mime
View raw message