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 15EA6200D64 for ; Tue, 12 Dec 2017 02:02:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 146AA160C22; Tue, 12 Dec 2017 01:02:00 +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 58DBE160C13 for ; Tue, 12 Dec 2017 02:01:59 +0100 (CET) Received: (qmail 87583 invoked by uid 500); 12 Dec 2017 01:01:58 -0000 Mailing-List: contact reviews-help@impala.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.apache.org Received: (qmail 87564 invoked by uid 99); 12 Dec 2017 01:01:58 -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; Tue, 12 Dec 2017 01:01:58 +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 DC3D3C69C7 for ; Tue, 12 Dec 2017 01:01:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kykXYEDYVEdE for ; Tue, 12 Dec 2017 01:01:55 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 26FBC63AE9 for ; Tue, 12 Dec 2017 00:10:31 +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 vBC0ATji003465; Tue, 12 Dec 2017 00:10:29 GMT Message-Id: <201712120010.vBC0ATji003465@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 3 Date: Tue, 12 Dec 2017 00:10:29 +0000 From: "Vuk Ercegovac (Code Review)" To: Lars Volker , impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4993=3A_extend_dictionary_filtering_to_collections=0A?= X-Gerrit-Change-Id: If3a2abcfc3d0f7d18756816659fed77ce12668dd X-Gerrit-Change-Number: 8775 X-Gerrit-ChangeURL: X-Gerrit-Commit: e773de6595b8cfbd60e50380a4ea656a8d49f5fd In-Reply-To: References: Reply-To: vercegovac@cloudera.com, impala-cr@cloudera.com, lv@cloudera.com, marcelk@gmail.com, reviews@impala.incubator.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="LyIkkRwPprY="; charset=UTF-8 archived-at: Tue, 12 Dec 2017 01:02:00 -0000 --LyIkkRwPprY= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Lars Volker, I'd like you to reexamine a change=2E Please visit = http://gerrit=2Ecloudera=2Eorg:8080/8775 to look at the new patch set (#= 3)=2E Change subject: IMPALA-4993: extend dictionary filtering to collecti= ons =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E IMPALA-= 4993: extend dictionary filtering to collections Currently, top-level scal= ar columns in parquet files can be used at runtime to prune row-groups by e= valuating certain conjuncts over the column's dictionary (if available)=2E = This change extends such pruning to scalar values that are stored in colle= ction type columns=2E Currently, dictionary pruning works by finding eligib= le conjuncts for top-level slots=2E Since only top-level slots are supporte= d, the slots are implicitly part of the scan node's tuple descriptor=2E Wit= h this change, we track eligible conjuncts by slot as well as the tuple tha= t contains the slot (either top-level or nested collection)=2E Since collec= tion conjuncts are already managed by a map that associates tuple descripto= rs to a list of their conjuncts, this extension follows the existing repres= entation=2E The frontend builds the mapping of to conjun= cts that are dictionary filterable=2E The backend is adjusted to use the sa= me representation=2E In addition, collection readers are decomposed into sc= alar filterable columns and other, non-dictionary filterable readers=2E Whe= n filtering a row group using a conjunct associated to a (possibly) nested = collection type, an additional tuple buffer is allocated per tuple descript= or=2E Testing: - e2e test extended to illustrate row-groups that are prune= d by nested collection dictionary filters=2E Change-Id: If3a2abcfc3d0f7d= 18756816659fed77ce12668dd --- M be/src/exec/hdfs-parquet-scanner=2Ecc M be/= src/exec/hdfs-parquet-scanner=2Eh M be/src/exec/hdfs-scan-node-base=2Ecc M = be/src/exec/hdfs-scan-node-base=2Eh M be/src/exec/hdfs-scanner=2Ecc M be/sr= c/exec/hdfs-scanner=2Eh M be/src/runtime/collection-value-builder=2Eh M com= mon/thrift/PlanNodes=2Ethrift M fe/src/main/java/org/apache/impala/planner/= HdfsScanNode=2Ejava M testdata/workloads/functional-planner/queries/Planner= Test/parquet-filtering=2Etest M testdata/workloads/functional-query/queries= /QueryTest/parquet-filtering=2Etest 11 files changed, 638 insertions(+), 19= 4 deletions(-) git pull ssh://gerrit=2Ecloudera=2Eorg:29418/Impala-ASF = refs/changes/75/8775/3 -- To view, visit http://gerrit=2Ecloudera=2Eorg:80= 80/8775 To unsubscribe, visit http://gerrit=2Ecloudera=2Eorg:8080/settings = Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpa= tchset Gerrit-Change-Id: If3a2abcfc3d0f7d18756816659fed77ce12668dd Gerrit-C= hange-Number: 8775 Gerrit-PatchSet: 3 Gerrit-Owner: Vuk Ercegovac Gerrit-Reviewer: Lars Volker Gerrit-= Reviewer: Vuk Ercegovac --LyIkkRwPprY=--