[ 
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 <[email protected]>
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)

Reply via email to