Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 1200 invoked from network); 25 Mar 2010 19:08:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 19:08:48 -0000 Received: (qmail 29305 invoked by uid 500); 25 Mar 2010 19:08:48 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 29245 invoked by uid 500); 25 Mar 2010 19:08:48 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 29105 invoked by uid 99); 25 Mar 2010 19:08:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 19:08:48 +0000 X-ASF-Spam-Status: No, hits=-1135.6 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 19:08:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B25E0234C4B4 for ; Thu, 25 Mar 2010 19:08:27 +0000 (UTC) Message-ID: <1568821364.495011269544107676.JavaMail.jira@brutus.apache.org> Date: Thu, 25 Mar 2010 19:08:27 +0000 (UTC) From: "Paul Yang (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1278) Partition name to values conversion conversion method In-Reply-To: <1563997512.472231269464067443.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.