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 844BE110E8 for ; Sat, 24 May 2014 23:07:03 +0000 (UTC) Received: (qmail 66934 invoked by uid 500); 24 May 2014 23:07:02 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 66867 invoked by uid 500); 24 May 2014 23:07:02 -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 66859 invoked by uid 500); 24 May 2014 23:07:02 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 66856 invoked by uid 99); 24 May 2014 23:07:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 May 2014 23:07:02 +0000 Date: Sat, 24 May 2014 23:07:02 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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:all-tabpanel ] Ashutosh Chauhan updated HIVE-6934: ----------------------------------- Status: Open (was: Patch Available) Failed tests need to be looked at > 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 > Reporter: Harish Butani > Assignee: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-6934.1.patch, HIVE-6934.2.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.2#6252)