Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EC6510526 for ; Wed, 24 Jul 2013 20:23:49 +0000 (UTC) Received: (qmail 46414 invoked by uid 500); 24 Jul 2013 20:23:48 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 46354 invoked by uid 500); 24 Jul 2013 20:23:48 -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 46345 invoked by uid 500); 24 Jul 2013 20:23:48 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 46342 invoked by uid 99); 24 Jul 2013 20:23:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 20:23:48 +0000 Date: Wed, 24 Jul 2013 20:23:48 +0000 (UTC) From: "Laljo John Pullokkaran (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4878) With Dynamic partitioning, some queries would scan default partition even if query is not using it. 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-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718788#comment-13718788 ] Laljo John Pullokkaran commented on HIVE-4878: ---------------------------------------------- Resubmitted the patch to do partition skip regardless of "Dynamic Partition Mode". This fix avoids scanning default partition if all of the following is true: a) partition pruning expression failed to evaluate for a given partition. b) at the least one of the columns in the partition is default partition. > With Dynamic partitioning, some queries would scan default partition even if query is not using it. > --------------------------------------------------------------------------------------------------- > > Key: HIVE-4878 > URL: https://issues.apache.org/jira/browse/HIVE-4878 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.11.0 > Reporter: Laljo John Pullokkaran > Assignee: Laljo John Pullokkaran > Fix For: 0.11.1 > > Attachments: HIVE-4878.patch > > > With Dynamic partitioning, Hive would scan default partitions in some cases even if query excludes it. > As part of partition pruning, predicate is narrowed down to those pieces that involve partition columns only. This predicate is then evaluated with partition values to determine, if scan should include those partitions. > But in some cases (like when comparing "__HIVE_DEFAULT_PARTITION__" to numeric data types) expression evaluation would fail and would return NULL instead of true/false. In such cases the partition is added to unknown partitions which is then subsequently scanned. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira