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 63888200B20 for ; Wed, 11 May 2016 21:12:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61EC5160A18; Wed, 11 May 2016 19:12:23 +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 AC2E0160A17 for ; Wed, 11 May 2016 21:12:22 +0200 (CEST) Received: (qmail 84395 invoked by uid 500); 11 May 2016 19:12:22 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 84384 invoked by uid 99); 11 May 2016 19:12:21 -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; Wed, 11 May 2016 19:12:21 +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 F36951A4796 for ; Wed, 11 May 2016 19:12:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 mx2-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 LOmCgdEBtf5K for ; Wed, 11 May 2016 19:12:19 +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 mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 6C4F95F297 for ; Wed, 11 May 2016 19:12:19 +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 u4BJCIPg001616; Wed, 11 May 2016 19:12:18 GMT Message-Id: <201605111912.u4BJCIPg001616@ip-10-146-233-104.ec2.internal> Date: Wed, 11 May 2016 19:12:18 +0000 From: "Tim Armstrong (Code Review)" To: Skye Wanderman-Milne , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Dan Hecht Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_IMPALA-3311:_fix_string_data_coming_out_of_aggs_in_subplans=0A?= X-Gerrit-Change-Id: Iada891504c261ba54f4eb8c9d7e4e5223668d7b9 X-Gerrit-ChangeURL: X-Gerrit-Commit: 344561f256a035d99ce9c063a763dfd3106ce000 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.10-rc0 archived-at: Wed, 11 May 2016 19:12:23 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-3311: fix string data coming out of aggs in subplans ...................................................................... Patch Set 1: (2 comments) http://gerrit.cloudera.org:8080/#/c/2929/1/be/src/exec/partitioned-aggregation-node.cc File be/src/exec/partitioned-aggregation-node.cc: Line 370: for (int i = 0; i < aggregate_evaluators_.size(); ++i) { > I moved the string copying code to its own function. Lemme know if you thin It would be good to factor this whole loop out, e.g. into HandleLocalStringAllocations() (or some other name, that's a little clunky). I think then we can bail out of the function early if (!needs_finalize_ && !needs_serialize_). Line 374: if (IsInSubplan()) { > I'm having trouble writing a good query that really isolates this effect an Thanks for doing this, it's good to confirm that there's a real effect. I also commented on the query file itself. -- To view, visit http://gerrit.cloudera.org:8080/2929 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iada891504c261ba54f4eb8c9d7e4e5223668d7b9 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Skye Wanderman-Milne Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Skye Wanderman-Milne Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes