drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3874) flattening large JSON objects consumes too much direct memory
Date Thu, 01 Oct 2015 13:44:26 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939833#comment-14939833
] 

ASF GitHub Bot commented on DRILL-3874:
---------------------------------------

GitHub user cwestin opened a pull request:

    https://github.com/apache/drill/pull/181

    DRILL-3874: flattening large JSON objects uses too much direct memory

    - add getBufferSizeFor() to ValueVector interface
    - add implememtations of getBufferSizeFor() for all ValueVector derivatives
    - add adaptive algorithm for adjusting batch size to flatten operator

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cwestin/incubator-drill flatten-memory

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/181.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #181
    
----
commit ca9bccb8657169849e4965e180cdad75e0652c9e
Author: Chris Westin <cwestin@yahoo.com>
Date:   2015-09-29T23:05:00Z

    DRILL-3874: flattening large JSON objects uses too much direct memory
    - add getBufferSizeFor() to ValueVector interface
    - add implememtations of getBufferSizeFor() for all ValueVector derivatives
    - add adaptive algorithm for adjusting batch size to flatten operator

----


> flattening large JSON objects consumes too much direct memory
> -------------------------------------------------------------
>
>                 Key: DRILL-3874
>                 URL: https://issues.apache.org/jira/browse/DRILL-3874
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 1.1.0
>            Reporter: Chris Westin
>            Assignee: Chris Westin
>
> A JSON record has a field whose value is an array with 20,000 elements; the record's
size is 4MB. A select is used to flatten this. The query profile reports that the peak memory
utilization was 8GB, most of it used by the flatten. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message