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 1D307200BE1 for ; Mon, 5 Dec 2016 04:19:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1BC9C160B26; Mon, 5 Dec 2016 03:19:00 +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 64A3C160B0E for ; Mon, 5 Dec 2016 04:18:59 +0100 (CET) Received: (qmail 38601 invoked by uid 500); 5 Dec 2016 03:18:58 -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 38572 invoked by uid 99); 5 Dec 2016 03:18:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2016 03:18:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7405F2C0086 for ; Mon, 5 Dec 2016 03:18:58 +0000 (UTC) Date: Mon, 5 Dec 2016 03:18:58 +0000 (UTC) From: "Rui Li (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-15239) hive on spark combine equivalentwork get wrong result because of tablescan operation compare MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Dec 2016 03:19:00 -0000 [ https://issues.apache.org/jira/browse/HIVE-15239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rui Li updated HIVE-15239: -------------------------- Attachment: HIVE-15239.4.patch > hive on spark combine equivalentwork get wrong result because of tablescan operation compare > --------------------------------------------------------------------------------------------- > > Key: HIVE-15239 > URL: https://issues.apache.org/jira/browse/HIVE-15239 > Project: Hive > Issue Type: Bug > Components: Spark > Affects Versions: 1.2.0, 2.1.0 > Reporter: wangwenli > Assignee: Rui Li > Attachments: HIVE-15239.1.patch, HIVE-15239.2.patch, HIVE-15239.3.patch, HIVE-15239.4.patch > > > env: hive on spark engine > reproduce step: > {code} > create table a1(KEHHAO string, START_DT string) partitioned by (END_DT string); > create table a2(KEHHAO string, START_DT string) partitioned by (END_DT string); > alter table a1 add partition(END_DT='20161020'); > alter table a1 add partition(END_DT='20161021'); > insert into table a1 partition(END_DT='20161020') values('2000721360','20161001'); > SELECT T1.KEHHAO,COUNT(1) FROM ( > SELECT KEHHAO FROM a1 T > WHERE T.KEHHAO = '2000721360' AND '20161018' BETWEEN T.START_DT AND T.END_DT-1 > UNION ALL > SELECT KEHHAO FROM a2 T > WHERE T.KEHHAO = '2000721360' AND '20161018' BETWEEN T.START_DT AND T.END_DT-1 > ) T1 > GROUP BY T1.KEHHAO > HAVING COUNT(1)>1; > +-------------+------+--+ > | t1.kehhao | _c1 | > +-------------+------+--+ > | 2000721360 | 2 | > +-------------+------+--+ > {code} > the result should be none record -- This message was sent by Atlassian JIRA (v6.3.4#6332)