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 4BEC7200C4F for ; Sat, 18 Mar 2017 04:51:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4A7AF160B8C; Sat, 18 Mar 2017 03:51:27 +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 91FA8160B80 for ; Sat, 18 Mar 2017 04:51:26 +0100 (CET) Received: (qmail 34709 invoked by uid 500); 18 Mar 2017 03:51:25 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 34698 invoked by uid 99); 18 Mar 2017 03:51:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2017 03:51:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B46F01A7A57 for ; Sat, 18 Mar 2017 03:51:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DA7AWPidIrjY for ; Sat, 18 Mar 2017 03:51:23 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7CF765F46F for ; Sat, 18 Mar 2017 03:51:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v2I3pMdp020967; Sat, 18 Mar 2017 03:51:22 GMT Message-Id: <201703180351.v2I3pMdp020967@ip-10-146-233-104.ec2.internal> Date: Sat, 18 Mar 2017 03:51:22 +0000 From: "Alex Behm (Code Review)" To: Taras Bobrovytsky , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Tim Armstrong , Marcel Kornacker , Dan Hecht Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-3586=3A_Implement_union_passthrough=0A?= X-Gerrit-Change-Id: Ia8f6d5062724ba5b78174c3227a7a796d10d8416 X-Gerrit-ChangeURL: X-Gerrit-Commit: 4b3ae3d19ed7d9734ef32778791fbc9cdb878b5e In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Sat, 18 Mar 2017 03:51:27 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-3586: Implement union passthrough ...................................................................... Patch Set 18: (5 comments) http://gerrit.cloudera.org:8080/#/c/5816/18/be/src/exec/union-node.h File be/src/exec/union-node.h: Line 61: /// Index of the first non-passthrough child; i.e. a child that needs materializing and i.e. a child that needs materialization (remove the "and evaluating its exprs" part) Line 62: /// evaluating its exprs. When all children are materialized, this should be zero. When Shrink like this: /// evaluating its exprs. /// 0 when all children are materialized /// 'children_.size()' when no children are materialized http://gerrit.cloudera.org:8080/#/c/5816/18/fe/src/main/java/org/apache/impala/planner/UnionNode.java File fe/src/main/java/org/apache/impala/planner/UnionNode.java: Line 180: * children come before the children that need to be materialized and evaluated. Also remove "and evaluated" Line 181: * reorders 'resultExprLists_'. This is done in order to simplify the implementation in Instead of 'This' be explicit since the reference could be misunderstood. Say "The children are reordered to simplify ..." http://gerrit.cloudera.org:8080/#/c/5816/18/tests/query_test/test_queries.py File tests/query_test/test_queries.py: Line 80: query_string = ("select count(c) from ( " Why not add this at the end of union.test? Seems odd to have a single naked test case without a comment here. -- To view, visit http://gerrit.cloudera.org:8080/5816 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ia8f6d5062724ba5b78174c3227a7a796d10d8416 Gerrit-PatchSet: 18 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Taras Bobrovytsky Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Taras Bobrovytsky Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes