Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 73379200C80 for ; Thu, 11 May 2017 01:25:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72020160BC6; Wed, 10 May 2017 23:25:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BF8E3160B9C for ; Thu, 11 May 2017 01:25:07 +0200 (CEST) Received: (qmail 6211 invoked by uid 500); 10 May 2017 23:25:07 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 6191 invoked by uid 99); 10 May 2017 23:25:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 23:25:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 938531883AB for ; Wed, 10 May 2017 23:25:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZWrhWADRCW7I for ; Wed, 10 May 2017 23:25:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2C8565FC43 for ; Wed, 10 May 2017 23:25:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6E014E0942 for ; Wed, 10 May 2017 23:25:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 16BC721E0A for ; Wed, 10 May 2017 23:25:04 +0000 (UTC) Date: Wed, 10 May 2017 23:25:04 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-16609) col='__HIVE_DEFAULT_PARTITION__' condition in select statement may produce wrong result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 May 2017 23:25:08 -0000 [ https://issues.apache.org/jira/browse/HIVE-16609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005619#comment-16005619 ] Sergey Shelukhin commented on HIVE-16609: ----------------------------------------- The patch. > col='__HIVE_DEFAULT_PARTITION__' condition in select statement may produce wrong result > --------------------------------------------------------------------------------------- > > Key: HIVE-16609 > URL: https://issues.apache.org/jira/browse/HIVE-16609 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Daniel Dai > Assignee: Daniel Dai > Attachments: HIVE-16609.1.patch, HIVE-16609.2.patch > > > A variation of alter_partition_change_col.q produces wrong result: > {code} > SET hive.exec.dynamic.partition.mode = nonstrict; > create table alter_partition_change_col0 (c1 string, c2 string); > load data local inpath 'dec.txt' overwrite into table alter_partition_change_col0; > create table alter_partition_change_col1 (c1 string, c2 string) partitioned by (p1 string comment 'Column p1', p2 string comment 'Column p2'); > insert overwrite table alter_partition_change_col1 partition (p1, p2) > select c1, c2, 'abc', '123' from alter_partition_change_col0 > union all > select c1, c2, cast(null as string), '123' from alter_partition_change_col0; > select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__' or lower(p1)='a'; > {code} > The "select" statement does not produce the rows containing "__HIVE_DEFAULT_PARTITION__". > We need another condition containing a udf so the condition is not recognized by PartFilterExprUtil.makeExpressionTree in ObjectStore. Looks like HIVE-11208 breaks it. -- This message was sent by Atlassian JIRA (v6.3.15#6346)