Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 36213 invoked from network); 28 Mar 2011 18:04:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2011 18:04:46 -0000 Received: (qmail 46411 invoked by uid 500); 28 Mar 2011 18:04:45 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 46378 invoked by uid 500); 28 Mar 2011 18:04:45 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 46370 invoked by uid 500); 28 Mar 2011 18:04:45 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 46367 invoked by uid 99); 28 Mar 2011 18:04:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 18:04:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 18:04:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EF212843E4 for ; Mon, 28 Mar 2011 18:04:05 +0000 (UTC) Date: Mon, 28 Mar 2011 18:04:05 +0000 (UTC) From: "Ning Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1642214246.17176.1301335445976.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <158143329.14308.1299875999519.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2050) batch processing partition pruning process MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ning Zhang updated HIVE-2050: ----------------------------- Attachment: HIVE-2050.3.patch Taken Namit's comment. Review board is also updated. > batch processing partition pruning process > ------------------------------------------ > > Key: HIVE-2050 > URL: https://issues.apache.org/jira/browse/HIVE-2050 > Project: Hive > Issue Type: Sub-task > Reporter: Ning Zhang > Assignee: Ning Zhang > Attachments: HIVE-2050.2.patch, HIVE-2050.3.patch, HIVE-2050.patch > > > For partition predicates that cannot be pushed down to JDO filtering (HIVE-2049), we should fall back to the old approach of listing all partition names first and use Hive's expression evaluation engine to select the correct partitions. Then the partition pruner should hand Hive a list of partition names and return a list of Partition Object (this should be added to the Hive API). > A possible optimization is that the the partition pruner should give Hive a set of ranges of partition names (say [ts=01, ts=11], [ts=20, ts=24]), and the JDO query should be formulated as range queries. Range queries are possible because the first step list all partition names in sorted order. It's easy to come up with a range and it is guaranteed that the JDO range query results should be equivalent to the query with a list of partition names. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira