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 A2B99200D08 for ; Wed, 23 Aug 2017 06:41:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A154716836F; Wed, 23 Aug 2017 04:41:04 +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 E846A16836D for ; Wed, 23 Aug 2017 06:41:03 +0200 (CEST) Received: (qmail 62282 invoked by uid 500); 23 Aug 2017 04:41:03 -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 62266 invoked by uid 99); 23 Aug 2017 04:41:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 04:41:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 20C48C0169 for ; Wed, 23 Aug 2017 04:41:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id PfpnIHeycgKC for ; Wed, 23 Aug 2017 04:41:00 +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 4E0685F6C2 for ; Wed, 23 Aug 2017 04:41:00 +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 v7N4ewpc007620; Wed, 23 Aug 2017 04:40:59 GMT Date: Wed, 23 Aug 2017 04:40:58 +0000 From: "Tianyi Wang (Code Review)" To: Marcel Kornacker , impala-cr@cloudera.com, reviews@impala.incubator.apache.org Message-ID: Reply-To: twang@cloudera.com X-Gerrit-MessageType: newchange 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: 3355453192f5c10e143c1bcad8465ba31551b858 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, 23 Aug 2017 04:41:04 -0000 Tianyi Wang has uploaded a new change for review. http://gerrit.cloudera.org:8080/7776 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 addes 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 couting into collection_items_read_counter. Both counters are updated every row batch read. In the query described above, scanning time is decreased by 10.4%. Change-Id: I7f6efddaea18507482940f5bdab7326b6482b067 --- M be/src/exec/hdfs-parquet-scanner.cc M be/src/exec/hdfs-parquet-scanner.h M be/src/exec/parquet-column-readers.cc M be/src/exec/parquet-column-readers.h M be/src/exec/scan-node.cc M be/src/exec/scan-node.h 6 files changed, 77 insertions(+), 48 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/76/7776/1 -- To view, visit http://gerrit.cloudera.org:8080/7776 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7f6efddaea18507482940f5bdab7326b6482b067 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tianyi Wang