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 985C717751 for ; Wed, 22 Oct 2014 17:59:34 +0000 (UTC) Received: (qmail 74944 invoked by uid 500); 22 Oct 2014 17:59:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 74875 invoked by uid 500); 22 Oct 2014 17:59:34 -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 74863 invoked by uid 500); 22 Oct 2014 17:59:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 74860 invoked by uid 99); 22 Oct 2014 17:59:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 17:59:33 +0000 Date: Wed, 22 Oct 2014 17:59:33 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6934) PartitionPruner doesn't handle top level constant expression correctly 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-6934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180251#comment-14180251 ] Ashutosh Chauhan commented on HIVE-6934: ---------------------------------------- committed to 0.14 > PartitionPruner doesn't handle top level constant expression correctly > ---------------------------------------------------------------------- > > Key: HIVE-6934 > URL: https://issues.apache.org/jira/browse/HIVE-6934 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer, Query Processor > Reporter: Harish Butani > Assignee: Hari Sankar Sivarama Subramaniyan > Priority: Critical > Fix For: 0.14.0 > > Attachments: HIVE-6934.4.patch, HIVE-6934.5.patch, HIVE-6934.6.patch, HIVE-6934.7.patch, HIVE-6934.8.patch, HIVE-6934.9.patch, HIVE-6934.91.patch, HIVE-6934.92.patch > > > You hit this error indirectly, because how we handle invalid constant comparisons. Consider: > {code} > create table x(key int, value string) partitioned by (dt int, ts string); > -- both these queries hit this issue > select * from x where key = 'abc'; > select * from x where dt = 'abc'; > -- the issue is the comparison get converted to the constant false > -- and the PartitionPruner doesn't handle top level constant exprs corrcetly > {code} > Thanks to [~hsubramaniyan] for uncovering this as part of adding tests for HIVE-5376 -- This message was sent by Atlassian JIRA (v6.3.4#6332)