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 00EBE200D30 for ; Mon, 30 Oct 2017 19:50:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F3663160BF8; Mon, 30 Oct 2017 18:50:02 +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 3CDB81609D5 for ; Mon, 30 Oct 2017 19:50:02 +0100 (CET) Received: (qmail 4421 invoked by uid 500); 30 Oct 2017 18:50:01 -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 4332 invoked by uid 99); 30 Oct 2017 18:50:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2017 18:50:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1AEFFCD430; Mon, 30 Oct 2017 18:50:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.75 X-Spam-Level: *** X-Spam-Status: No, score=3.75 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GgdEclx2_88I; Mon, 30 Oct 2017 18:49:59 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D8CC561143; Mon, 30 Oct 2017 18:49:58 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7151DE065C; Mon, 30 Oct 2017 18:49:58 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 62029C40ADA; Mon, 30 Oct 2017 18:49:58 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8370672460104431602==" MIME-Version: 1.0 Subject: Re: Review Request 63343: HIVE-17766 From: =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez?= To: Ashutosh Chauhan , Vineet Garg Cc: hive , =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez?= Date: Mon, 30 Oct 2017 18:49:58 -0000 Message-ID: <20171030184958.50427.42012@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez_=3Cnoreply=40reviews=2E?=@reviews.apache.org, =?utf-8?q?apache=2Eorg=3E?=@reviews.apache.org X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/63343/ X-Sender: =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez_=3Cnoreply=40reviews?= =?utf-8?b?LmFwYWNoZS5vcmc+?= References: <20171026230832.51101.75748@reviews-vm2.apache.org> In-Reply-To: <20171026230832.51101.75748@reviews-vm2.apache.org> X-ReviewBoard-Diff-For: ql/src/test/queries/clientpositive/semijoin6.q X-ReviewBoard-Diff-For: ql/src/test/results/clientpositive/llap/semijoin6.q.out Reply-To: =?utf-8?q?Jes=C3=BAs_Camacho_Rodr=C3=ADguez_=3Cjcamachorodriguez?=@reviews.apache.org, =?utf-8?q?=40hortonworks=2Ecom=3E?=@reviews.apache.org X-ReviewRequest-Repository: hive-git archived-at: Mon, 30 Oct 2017 18:50:03 -0000 --===============8370672460104431602== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > On Oct. 26, 2017, 11:08 p.m., Ashutosh Chauhan wrote: > > ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java > > Lines 2136-2137 (original), 2119-2120 (patched) > > > > > > Shall we try to get equi joins keys and populate them in operator here? Will it happen later in planning. > > Either way good to add a comment about this. > > Jesús Camacho Rodríguez wrote: > This is in Calcite operators, not in Hive. The reason keys are there is because semijoin extends equijoin. I do not know if they are effectively used, the logic here was pushing the computation of expressions to children project, but that seems to be happening when we trigger rewriting rules in any case, thus I do not think we need to do it here (maybe this code was written before some of the rules that take care of this were enabled in Hive?). I discovered some tests in previous iteration of the patch where filters that were applying to only one input where not pushed below the semijoin. I have fixed this logic to push whatever we can push below the semijoin and create the semijoin condition with the rest. - Jesús ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63343/#review189370 ----------------------------------------------------------- On Oct. 28, 2017, 8:06 p.m., Jesús Camacho Rodríguez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63343/ > ----------------------------------------------------------- > > (Updated Oct. 28, 2017, 8:06 p.m.) > > > Review request for hive, Ashutosh Chauhan and Vineet Garg. > > > Bugs: HIVE-17766 > https://issues.apache.org/jira/browse/HIVE-17766 > > > Repository: hive-git > > > Description > ------- > > HIVE-17766 > > > Diffs > ----- > > itests/src/test/resources/testconfiguration.properties a4648beae1ec18c88bab35ae3e7f9d9f202e40e5 > ql/src/java/org/apache/hadoop/hive/ql/exec/CommonJoinOperator.java 3573d07e9a3bab4dabdc0b73292bd02ad05cbc89 > ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java 46493ac006d00f2e6c0054da2438c0b01c1e3fd3 > ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 5ccb69ac4824a2002b2bddb1ad206cb7acd3ace3 > ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java 4ddf1d5b5e87a43f7f606ce3c09ac295f5319333 > ql/src/test/queries/clientpositive/semijoin6.q PRE-CREATION > ql/src/test/results/clientpositive/llap/semijoin6.q.out PRE-CREATION > > > Diff: https://reviews.apache.org/r/63343/diff/5/ > > > Testing > ------- > > > Thanks, > > Jesús Camacho Rodríguez > > --===============8370672460104431602==--