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 2CD1E200C24 for ; Thu, 23 Feb 2017 21:27:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2B523160B64; Thu, 23 Feb 2017 20:27: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 6E772160B3E for ; Thu, 23 Feb 2017 21:27:48 +0100 (CET) Received: (qmail 31210 invoked by uid 500); 23 Feb 2017 20:27:47 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 31201 invoked by uid 99); 23 Feb 2017 20:27: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; Thu, 23 Feb 2017 20:27: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 0D26F18E5ED for ; Thu, 23 Feb 2017 20:27:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] 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 qUHJa7kPG1S9 for ; Thu, 23 Feb 2017 20:27:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4860B5F1C2 for ; Thu, 23 Feb 2017 20:27:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 850A0E05F7 for ; Thu, 23 Feb 2017 20:27:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3CF3024132 for ; Thu, 23 Feb 2017 20:27:44 +0000 (UTC) Date: Thu, 23 Feb 2017 20:27:44 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5266) Parquet Reader produces "low density" record batches - bits vs. bytes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Feb 2017 20:27:49 -0000 [ https://issues.apache.org/jira/browse/DRILL-5266?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1588= 1190#comment-15881190 ]=20 ASF GitHub Bot commented on DRILL-5266: --------------------------------------- Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/749#discussion_r102809881 =20 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parq= uet/columnreaders/ParquetRecordReader.java --- @@ -73,6 +72,7 @@ private static final long DEFAULT_BATCH_LENGTH =3D 256 * 1024 * NUMB= ER_OF_VECTORS; // 256kb private static final long DEFAULT_BATCH_LENGTH_IN_BITS =3D DEFAULT_B= ATCH_LENGTH * 8; // 256kb private static final char DEFAULT_RECORDS_TO_READ_IF_NOT_FIXED_WIDTH= =3D 32*1024; --- End diff -- =20 Fixed. > Parquet Reader produces "low density" record batches - bits vs. bytes > --------------------------------------------------------------------- > > Key: DRILL-5266 > URL: https://issues.apache.org/jira/browse/DRILL-5266 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Parquet > Affects Versions: 1.10 > Reporter: Paul Rogers > Assignee: Paul Rogers > Labels: ready-to-commit > > Testing with the managed sort revealed that, for at least one file, Parqu= et produces "low-density" batches: batches in which only 5% of each value v= ector contains actual data, with the rest being unused space. When fed into= the sort, we end up buffering 95% of wasted space, using only 5% of availa= ble memory to hold actual query data. The result is poor performance of the= sort as it must spill far more frequently than expected. > The managed sort analyzes incoming batches to prepare good memory use est= imates. The following the the output from the Parquet file in question: > {code} > Actual batch schema & sizes { > T1=C2=A6=C2=A6cs_sold_date_sk(std col. size: 4, actual col. size: 4, to= tal size: 196608, vector size: 131072, data size: 4516, row capacity: 32768= , density: 4) > T1=C2=A6=C2=A6cs_sold_time_sk(std col. size: 4, actual col. size: 4, to= tal size: 196608, vector size: 131072, data size: 4516, row capacity: 32768= , density: 4) > T1=C2=A6=C2=A6cs_ship_date_sk(std col. size: 4, actual col. size: 4, to= tal size: 196608, vector size: 131072, data size: 4516, row capacity: 32768= , density: 4) > ... > c_email_address(std col. size: 54, actual col. size: 27, total size: 53= 248, vector size: 49152, data size: 30327, row capacity: 4095, density: 62) > Records: 1129, Total size: 32006144, Row width:28350, Density:5} > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)