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 E2F94200BC4 for ; Sat, 5 Nov 2016 02:02:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E0396160B0F; Sat, 5 Nov 2016 01:02:38 +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 3C5D1160B04 for ; Sat, 5 Nov 2016 02:02:38 +0100 (CET) Received: (qmail 39290 invoked by uid 500); 5 Nov 2016 01:02:37 -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 39247 invoked by uid 99); 5 Nov 2016 01:02:37 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2016 01:02:37 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 531532C1F54 for ; Sat, 5 Nov 2016 01:02:37 +0000 (UTC) Date: Sat, 5 Nov 2016 01:02:37 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4823) Fix OOM while trying to prune partitions with reasonable data size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 05 Nov 2016 01:02:39 -0000 [ https://issues.apache.org/jira/browse/DRILL-4823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15638244#comment-15638244 ] ASF GitHub Bot commented on DRILL-4823: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/drill/pull/560 > Fix OOM while trying to prune partitions with reasonable data size > ------------------------------------------------------------------ > > Key: DRILL-4823 > URL: https://issues.apache.org/jira/browse/DRILL-4823 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill, Query Planning & Optimization > Affects Versions: 1.6.0 > Reporter: Arina Ielchiieva > Assignee: Jinfeng Ni > Fix For: 1.9.0 > > > _Example query:_ > {code:sql} > select '/'||dir0||'/'||dir1||'/'||dir2||'/'||dir3 , count(*) > FROM dfs.`/path/to/parquet/files` > WHERE ('/'||dir0||'/'||dir1||'/'||dir2||'/'||dir3) IN ( > '/2015/11/30', > '//2015/09/01', > '/2015/09/02', > '/2015/09/03', > '/2015/09/04', > '/2015/09/09', > '/2016/03/30' > ) > group by '/'||dir0||'/'||dir1||'/'||dir2||'/'||dir3 > order by 1; > {code} > _Error:_ > OOM while trying to prune partitions: > {noformat} > org.apache.drill.exec.exception.OutOfMemoryException: Unable to allocate buffer of size 256 due to memory limit. Current allocation: 5242880 > at org.apache.drill.exec.memory.BaseAllocator.buffer(BaseAllocator.java:216) ~[drill-memory-base-1.6.0.jar:1.6.0] > at org.apache.drill.exec.ops.BufferManagerImpl.getManagedBuffer(BufferManagerImpl.java:60) ~[drill-java-exec-1.6.0.jar:1.6.0] > at org.apache.drill.exec.ops.BufferManagerImpl.getManagedBuffer(BufferManagerImpl.java:56) ~[drill-java-exec-1.6.0.jar:1.6.0] > at org.apache.drill.exec.ops.QueryContext.getManagedBuffer(QueryContext.java:241) ~[drill-java-exec-1.6.0.jar:1.6.0] > at org.apache.drill.exec.expr.fn.interpreter.InterpreterEvaluator$EvalVisitor.getManagedBufferIfAvailable(InterpreterEvaluator.java:158) ~[drill-java-exec-1.6.0.jar:1.6.0] > {noformat} > _Cause:_ > Interpreter always asks for a new buffer to hold varchar/varbinary or decimal constant values. That's why the memory size required would be proportion to # of constant expressions multiplied by # of input rows (partition). This is different from evaluation from run-time generated where constant expression will be evaluated once and use only one buffer per value. > _Fix:_ > To use one buffer for each unique constant value in query. -- This message was sent by Atlassian JIRA (v6.3.4#6332)