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 C7995200C32 for ; Thu, 9 Mar 2017 23:16:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C62C6160B75; Thu, 9 Mar 2017 22:16:14 +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 1C874160B5F for ; Thu, 9 Mar 2017 23:16:13 +0100 (CET) Received: (qmail 80797 invoked by uid 500); 9 Mar 2017 22:16:13 -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 80762 invoked by uid 99); 9 Mar 2017 22:16:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 22:16:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8F6631803A3 for ; Thu, 9 Mar 2017 22:16:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 5Cx66qs29BDf for ; Thu, 9 Mar 2017 22:16:11 +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 93DB15F1EE for ; Thu, 9 Mar 2017 22:16:11 +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 v29MG5ht024873; Thu, 9 Mar 2017 22:16:05 GMT Message-Id: <201703092216.v29MG5ht024873@ip-10-146-233-104.ec2.internal> Date: Thu, 9 Mar 2017 22:16:05 +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: a256144a71a73944fa15a80581139daf78df1716 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: Thu, 09 Mar 2017 22:16:15 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-3586: Implement union passthrough ...................................................................... Patch Set 13: (5 comments) http://gerrit.cloudera.org:8080/#/c/5816/13/be/src/exec/union-node.cc File be/src/exec/union-node.cc: Line 156: // It is OK to close the child here because all RowBatches have already been ... because all tuple data has been copied, and we will not be calling ... Line 174: child_batch_.reset(); move this before ++child_idx_ to have them clustered? http://gerrit.cloudera.org:8080/#/c/5816/13/be/src/exec/union-node.h File be/src/exec/union-node.h: Line 67: /// Children that can be passed through, without evaluating and materializing their single line Line 109: inline bool AtEos(int per_fragment_instance_idx) const { Maybe it's clearer to make GetNextPassThrough() not set eos, and instead have all the *eos setting be done directly inside GetNext(). That way each place different place can do the appropriate checks. Line 119: DCHECK_LE(child_idx_, children_.size()); Checking of the child_idx_ is dependent on the aller pattern of advancing the child_idx_ and calling into this AtEos(), another argument for maybe inlining the checks into GetNext() to make this subtle point less disconnected. -- 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: 13 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