drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aman Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1888) Memory leak for aggregation with HAVING clause
Date Fri, 23 Jan 2015 19:01:34 GMT

     [ https://issues.apache.org/jira/browse/DRILL-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aman Sinha updated DRILL-1888:
------------------------------
    Component/s:     (was: Execution - Operators)

> Memory leak for aggregation with HAVING clause
> ----------------------------------------------
>
>                 Key: DRILL-1888
>                 URL: https://issues.apache.org/jira/browse/DRILL-1888
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 0.6.0
>            Reporter: Victoria Markman
>            Assignee: Aman Sinha
>             Fix For: 0.8.0
>
>
> Use TPC-DS scema and run query below:
> {code}
> SELECT
>         wr_returning_customer_sk,
>         wr_returned_date_sk,
>         sum(wr_return_amt)/sum(wr_return_quantity) as avg_return_amt
> FROM web_returns
> WHERE (
>         wr_item_sk in   (
>                         SELECT
>                                 ws_item_sk
>                         FROM    web_sales
>                         WHERE ws_sales_price < 50 or ws_ext_sales_price < 1000)
>         or wr_item_sk in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) )
>         and wr_reason_sk in (10)
> GROUP BY
>         wr_returning_customer_sk,
>         wr_returned_date_sk
> HAVING sum(wr_return_amt)/sum(wr_return_quantity) >= 50.0;
> {code}
>         
> From drillbit.log
> {code}
> Total 1 allocation(s) of byte size(s): 4096, at stack location:
> org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:212)
>                 org.apache.drill.exec.vector.UInt1Vector.allocateNewSafe(UInt1Vector.java:137)
>                 org.apache.drill.exec.vector.UInt1Vector.allocateNew(UInt1Vector.java:123)
>                 org.apache.drill.exec.vector.NullableIntVector.allocateNew(NullableIntVector.java:163)
>                 org.apache.drill.exec.physical.impl.aggregate.HashAggBatch.buildSchema(HashAggBatch.java:101)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:130)
>                 org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:99)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:89)
>                 org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142)
>                 org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:99)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:89)
>                 org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
>                 org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.innerNext(RemovingRecordBatch.java:96)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142)
>                 org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:99)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:89)
>                 org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
>                 org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:132)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142)
>                 org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:99)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:89)
>                 org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
>                 org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:132)
>                 org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142)
>                 org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>                 org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:67)
>                 org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:97)
>                 org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:57)
>                 org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:114)
>                 org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:254)
>                 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>                 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>                 java.lang.Thread.run(Thread.java:745)
> {code}



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

Mime
View raw message