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 23A79200D31 for ; Sat, 21 Oct 2017 01:04:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2222E160BED; Fri, 20 Oct 2017 23:04:49 +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 6453A160BCB for ; Sat, 21 Oct 2017 01:04:48 +0200 (CEST) Received: (qmail 66332 invoked by uid 500); 20 Oct 2017 23:04:47 -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 66321 invoked by uid 99); 20 Oct 2017 23:04:47 -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; Fri, 20 Oct 2017 23:04:47 +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 8E8521807D7 for ; Fri, 20 Oct 2017 23:04:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 0VeqCrOo44HB for ; Fri, 20 Oct 2017 23:04:44 +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 AA0665FB4E for ; Fri, 20 Oct 2017 23:04:43 +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 v9KN4fAN013979; Fri, 20 Oct 2017 23:04:41 GMT Message-Id: <201710202304.v9KN4fAN013979@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 10 Date: Fri, 20 Oct 2017 23:04:41 +0000 From: "Pranay Singh (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Joe McDonnell , Bikramjeet Vig , Tim Armstrong X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5522=3AUse_tracked_memory_for_DictDecoder_and_DictEncoder=0A?= X-Gerrit-Change-Id: I02a3b54f6c107d19b62ad9e1c49df94175964299 X-Gerrit-Change-Number: 8034 X-Gerrit-ChangeURL: X-Gerrit-Commit: 76b6ea145757dd265498df128758276ea204cdc1 In-Reply-To: References: X-Gerrit-Comment-Date: Fri, 20 Oct 2017 23:04:41 +0000 Reply-To: impala-cr@cloudera.com, marcelk@gmail.com, tarmstrong@cloudera.com, joemcdonnell@cloudera.com, reviews@impala.incubator.apache.org, bikramjeet.vig@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="2wR3WgT/kN0="; charset=UTF-8 archived-at: Fri, 20 Oct 2017 23:04:49 -0000 --2wR3WgT/kN0= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pranay Singh has posted comments on this change=2E ( http://gerrit=2Ecloude= ra=2Eorg:8080/8034 ) Change subject: IMPALA-5522:Use tracked memory for Di= ctDecoder and DictEncoder =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 Patch Set 10: (5 comments) http://gerrit=2Ecloudera=2Eorg:= 8080/#/c/8034/10/be/src/exec/hdfs-parquet-scanner=2Eh File be/src/exec/hdfs= -parquet-scanner=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/10/be/s= rc/exec/hdfs-parquet-scanner=2Eh@352 PS10, Line 352: return mem_tracker_; >= if this is the same mem tracker in scan_node_ perhaps we can just do I tr= ied that earlier but I was getting the below error for parquet table writer= , so in order to have similar change in scanner and writer went this route = Error: ----- hdfs-parquet-table-writer=2Eh:83:57: error: invalid use of in= complete type =E2=80=98class impala::HdfsTableSink=E2=80=99 http://gerrit= =2Ecloudera=2Eorg:8080/#/c/8034/10/be/src/exec/hdfs-parquet-scanner=2Ecc Fi= le be/src/exec/hdfs-parquet-scanner=2Ecc: http://gerrit=2Ecloudera=2Eorg:8= 080/#/c/8034/10/be/src/exec/hdfs-parquet-scanner=2Ecc@337 PS10, Line 337: i= f (mem_tracker_ !=3D nullptr) { : mem_tracker_ =3D nullpt= r; : } > nit: one line Done http://gerrit=2Ecloudera=2Eor= g:8080/#/c/8034/10/be/src/exec/parquet-column-readers=2Eh File be/src/exec/= parquet-column-readers=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/1= 0/be/src/exec/parquet-column-readers=2Eh@356 PS10, Line 356: if (dict_decod= er_base_ !=3D nullptr) dict_decoder_base_->Close(); > instead of dict_decod= er_base_ we can just use the virtual function GetDicti GetDictionaryDecoder= () returns dict_decoder_base_ it should be the same calling the function Ge= tDictionaryDecoder() or accessing member variable dict_decoder_base_ direc= tly=2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/10/be/src/util/dict-e= ncoding=2Eh File be/src/util/dict-encoding=2Eh: http://gerrit=2Ecloudera= =2Eorg:8080/#/c/8034/10/be/src/util/dict-encoding=2Eh@206 PS10, Line 206: = > nit: extra line Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/10/be= /src/util/dict-encoding=2Eh@324 PS10, Line 324: > nit: extra line Done = -- To view, visit http://gerrit=2Ecloudera=2Eorg:8080/8034 To unsubscribe,= visit http://gerrit=2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala= -ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I0= 2a3b54f6c107d19b62ad9e1c49df94175964299 Gerrit-Change-Number: 8034 Gerrit-P= atchSet: 10 Gerrit-Owner: Pranay Singh Gerrit-Reviewer: Bikramjeet Vig Gerrit-Reviewer: Joe McDonnell Gerrit-Reviewer: Pranay Singh Gerrit-Reviewer: Tim Armstron= g Gerrit-Comment-Date: Fri, 20 Oct 2017 23:04:4= 1 +0000 Gerrit-HasComments: Yes --2wR3WgT/kN0=--