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 9CB1B200B8E for ; Mon, 22 Aug 2016 06:42:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B5E2160AC0; Mon, 22 Aug 2016 04:42:31 +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 E35DD160AAA for ; Mon, 22 Aug 2016 06:42:30 +0200 (CEST) Received: (qmail 46644 invoked by uid 500); 22 Aug 2016 04:24:21 -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 44899 invoked by uid 99); 22 Aug 2016 04:20:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 04:20:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 976912C0151 for ; Mon, 22 Aug 2016 04:20:20 +0000 (UTC) Date: Mon, 22 Aug 2016 04:20:20 +0000 (UTC) From: "Vineet Garg (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-14594) CBO: Calcite Operator To Hive Operator(Calcite Return Path): Fix wrong result in join_filters_overlap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 04:42:31 -0000 [ https://issues.apache.org/jira/browse/HIVE-14594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430019#comment-15430019 ] Vineet Garg edited comment on HIVE-14594 at 8/22/16 4:19 AM: ------------------------------------------------------------- Simple repro: Query: {code} select * from a left outer join a b on (a.key=b.key AND a.value=50 AND b.value=50{code} Expected Result: {code} 100 40 NULL NULL 100 50 100 50 100 60 NULL NULL {code} Actual Result: {code} 100 40 NULL 50 100 50 100 50 100 60 NULL 50 {code} was (Author: vgarg): Simple repro: Query: {code} select * from a left outer join a b on (a.key=b.key AND a.value=50 AND b.value=50) {code} Expected Result: {code} 100 40 NULL NULL 100 50 100 50 100 60 NULL NULL {code} Actual Result: {code} 100 40 NULL 50 100 50 100 50 100 60 NULL 50 {code} > CBO: Calcite Operator To Hive Operator(Calcite Return Path): Fix wrong result in join_filters_overlap > ----------------------------------------------------------------------------------------------------- > > Key: HIVE-14594 > URL: https://issues.apache.org/jira/browse/HIVE-14594 > Project: Hive > Issue Type: Sub-task > Components: CBO > Reporter: Vineet Garg > Assignee: Vineet Garg > > Setup > {code} create table a as SELECT 100 as key, a.value as value FROM src LATERAL VIEW explode(array(40, 50, 60)) a as value limit 3; {code} > Query: > {code} select * from a left outer join a b on (a.key=b.key AND a.value=50 AND b.value=50) left outer join a c on (a.key=c.key AND a.value=60 AND c.value=60); {code} > Expected Result: > {code} > 100 40 NULL NULL NULL NULL > 100 50 100 50 NULL NULL > 100 60 NULL NULL 100 60 > {code} > Actual Result: > {code} > 100 40 NULL 50 NULL 60 > 100 50 100 50 NULL 60 > 100 60 NULL 50 100 60 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)