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 7D625200C3A for ; Fri, 17 Mar 2017 06:51:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7A65E160B8B; Fri, 17 Mar 2017 05:51:17 +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 C3885160B78 for ; Fri, 17 Mar 2017 06:51:16 +0100 (CET) Received: (qmail 99990 invoked by uid 500); 17 Mar 2017 05:51:16 -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 99974 invoked by uid 99); 17 Mar 2017 05:51:15 -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; Fri, 17 Mar 2017 05:51:15 +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 3C398C1ED6 for ; Fri, 17 Mar 2017 05:51:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-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 XwKCHnIf2qCN for ; Fri, 17 Mar 2017 05:51:13 +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 1F6F460DC0 for ; Fri, 17 Mar 2017 05:51:13 +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 v2H5pCNt002621; Fri, 17 Mar 2017 05:51:12 GMT Message-Id: <201703170551.v2H5pCNt002621@ip-10-146-233-104.ec2.internal> Date: Fri, 17 Mar 2017 05:51:12 +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: faf16aa9e173585b7e4e2aed00fb261494367ca4 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: Fri, 17 Mar 2017 05:51:17 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-3586: Implement union passthrough ...................................................................... Patch Set 17: (8 comments) I'm pretty happy with the change. Only minor comment/naming issue left to fix. http://gerrit.cloudera.org:8080/#/c/5816/17//COMMIT_MSG Commit Message: Line 19: A new query option DISABLE_UNION_PASSTHROUGH was added in this patch No more query option. http://gerrit.cloudera.org:8080/#/c/5816/17/be/src/exec/union-node.h File be/src/exec/union-node.h: Line 32: class RuntimeState; remove Line 70: /// evaluating its exprs. Just or clarity it might help to spell out what its value is when all children are materialized and when no children are materialized Line 71: int first_materialized_child_idx_; make const and set in c'tor Line 100: /// call on the child. Sets 'passthrough_todo_' to false when all passthrough children update comments to not mention 'todo' http://gerrit.cloudera.org:8080/#/c/5816/17/fe/src/main/java/org/apache/impala/planner/UnionNode.java File fe/src/main/java/org/apache/impala/planner/UnionNode.java: Line 77: // Index of the first non-passthrough child; i.e. a child that needs materializing and Shrink to: // Index of the first non-passthrough child. Comment says it all :). The class comment already explains what passthrough is Line 183: * Re-order the union's operands such that the passthrough operands come before the I'd say the main purpose of this function is to compute passthrough. The re-ordering is secondary. So how about calling this computePassthrough(). Would also be good to mention that we reorder based on passthrough mostly for simplifying the BE implementation. Line 190: isChildPassthrough.add(computePassthrough( You could rename this computePassthrough() to isChildPassthrough() -- 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: 17 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