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 AA401200D31 for ; Sat, 21 Oct 2017 02:25:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8857160BED; Sat, 21 Oct 2017 00:25:39 +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 ED635160BCB for ; Sat, 21 Oct 2017 02:25:38 +0200 (CEST) Received: (qmail 16029 invoked by uid 500); 21 Oct 2017 00:25:38 -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 16018 invoked by uid 99); 21 Oct 2017 00:25:37 -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; Sat, 21 Oct 2017 00:25:37 +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 1F4071A04F0 for ; Sat, 21 Oct 2017 00:25:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2yOqyJyhg5O3 for ; Sat, 21 Oct 2017 00:25:35 +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 EACB45FCD3 for ; Sat, 21 Oct 2017 00:25:34 +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 v9L0PWH2019646; Sat, 21 Oct 2017 00:25:32 GMT Message-Id: <201710210025.v9L0PWH2019646@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 11 Date: Sat, 21 Oct 2017 00:25:32 +0000 From: "Bikramjeet Vig (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Joe McDonnell , 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: b3bcbc0f6fc131b93f9f7010ca77ac04c65e17cf In-Reply-To: References: X-Gerrit-Comment-Date: Sat, 21 Oct 2017 00:25:32 +0000 Reply-To: bikramjeet.vig@cloudera.com, impala-cr@cloudera.com, marcelk@gmail.com, tarmstrong@cloudera.com, joemcdonnell@cloudera.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="7zDFKvipqwQ="; charset=UTF-8 archived-at: Sat, 21 Oct 2017 00:25:39 -0000 --7zDFKvipqwQ= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bikramjeet Vig has posted comments on this change=2E ( http://gerrit=2Eclou= dera=2Eorg:8080/8034 ) Change subject: IMPALA-5522:Use tracked memory for = DictDecoder 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 11: (2 comments) http://gerrit=2Ecloudera=2Eo= rg:8080/#/c/8034/10/be/src/exec/hdfs-parquet-scanner=2Eh File be/src/exec/h= dfs-parquet-scanner=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/10/b= e/src/exec/hdfs-parquet-scanner=2Eh@352 PS10, Line 352: return mem_tracker_= ; > I tried that earlier but I was getting the below error for parquet tabl= e wr I see, that probably happens because HdfsTableSink class only has a fo= rward declaration in hdfs-table-write=2Eh If you would like to give this a= nother try: You can try including the hdfs-table-sink=2Eh in the hdfs-parq= uet-table-writer=2Eh and it should work=2E OR you can move the implementa= tion of dict_mem_tracker() to hdfs-parquet-table-writers=2Ecc and add the i= nclude there instead in order to minimize the includes in the header file= =2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/10/be/src/exec/parquet-c= olumn-readers=2Eh File be/src/exec/parquet-column-readers=2Eh: http://gerr= it=2Ecloudera=2Eorg:8080/#/c/8034/10/be/src/exec/parquet-column-readers=2Eh= @356 PS10, Line 356: if (dict_decoder_base_ !=3D nullptr) dict_decoder_base= _->Close(); > GetDictionaryDecoder() returns dict_decoder_base_ it should b= e the same cal Sorry, I should have been more clearer about what I was sugg= esting=2E What I meant was, instead of changing the method GetDictionaryDec= oder() in parquet-column-readers=2Eh where you return dict_decoder_base_, w= e can instead get rid of dict_decoder_base_ member var altogether and use G= etDictionaryDecoder() because the overridden method in ScalarColumnReader w= ould return the actual dict_decoder_ object that we can use directly and in= all other cases the default implementation will return a nullptr=2E -- = To view, visit http://gerrit=2Ecloudera=2Eorg:8080/8034 To unsubscribe, vi= sit http://gerrit=2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-AS= F Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I02a3= b54f6c107d19b62ad9e1c49df94175964299 Gerrit-Change-Number: 8034 Gerrit-Patc= hSet: 11 Gerrit-Owner: Pranay Singh Gerrit-Reviewer: Bikramjeet Vig Gerrit-Reviewer: Joe McDonnell Gerrit-Reviewer: Pranay Singh Gerrit-Reviewer: Tim Armstrong <= tarmstrong@cloudera=2Ecom> Gerrit-Comment-Date: Sat, 21 Oct 2017 00:25:32 += 0000 Gerrit-HasComments: Yes --7zDFKvipqwQ=--