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 18107200D0C for ; Wed, 6 Sep 2017 02:09:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1686B1609D1; Wed, 6 Sep 2017 00:09:47 +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 5D2A51609C5 for ; Wed, 6 Sep 2017 02:09:46 +0200 (CEST) Received: (qmail 16620 invoked by uid 500); 6 Sep 2017 00:09:44 -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 16609 invoked by uid 99); 6 Sep 2017 00:09:44 -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; Wed, 06 Sep 2017 00:09:44 +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 CDC76D55BC for ; Wed, 6 Sep 2017 00:09:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xKWcjUqoXPoR for ; Wed, 6 Sep 2017 00:09:41 +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 D16CC61260 for ; Wed, 6 Sep 2017 00:09:41 +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 v8609fwB003967; Wed, 6 Sep 2017 00:09:41 GMT Message-Id: <201709060009.v8609fwB003967@ip-10-146-233-104.ec2.internal> Date: Wed, 6 Sep 2017 00:09:41 +0000 From: "Impala Public Jenkins (Code Review)" To: Tianyi Wang , impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: merged Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5210=3A_Count_rows_and_collection_items_in_parquet_scanner_separately=0A?= X-Gerrit-Change-Id: I7f6efddaea18507482940f5bdab7326b6482b067 X-Gerrit-ChangeURL: X-Gerrit-Commit: 915d30f4bb6334e9d816e080722484537732fe3d 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: Wed, 06 Sep 2017 00:09:47 -0000 Impala Public Jenkins has submitted this change and it was merged. Change subject: IMPALA-5210: Count rows and collection items in parquet scanner separately ...................................................................... IMPALA-5210: Count rows and collection items in parquet scanner separately This patch adds collection_items_read_counter in scan node, makes rows_read_counter count top-level rows only, and updates these counters in a less frequent manner. When scanning nested columns, current code counts both top-level rows and nested rows in rows_read_counter, which is inconsistent with rows_returned_counter. Furthermore, rows_read_counter is updated eagerly whenever a batch of collection items are read. As a result it spends around 10% time updating the counter with the following simple query: >select count(*) from > customer c, > c.c_orders o, > o.o_lineitems l >where > c_mktsegment = 'BUILDING' > and o_orderdate < '1995-03-15' > and l_shipdate > '1995-03-15' and o_orderkey = 10; This patch moves collection items counting into collection_items_read_counter. Both counters are updated for every row batch read. In the query described above, scanning time is decreased by 10.4%. Change-Id: I7f6efddaea18507482940f5bdab7326b6482b067 Reviewed-on: http://gerrit.cloudera.org:8080/7776 Reviewed-by: Alex Behm Tested-by: Impala Public Jenkins --- M be/src/exec/hdfs-parquet-scanner.cc M be/src/exec/hdfs-parquet-scanner.h M be/src/exec/scan-node.cc M be/src/exec/scan-node.h 4 files changed, 33 insertions(+), 12 deletions(-) Approvals: Impala Public Jenkins: Verified Alex Behm: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/7776 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7f6efddaea18507482940f5bdab7326b6482b067 Gerrit-PatchSet: 10 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tianyi Wang Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Impala Public Jenkins Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Tianyi Wang