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-3947) IndexOutOfBoundsException for pruning on date column (at large scale)
Date Mon, 19 Oct 2015 16:05:05 GMT

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

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

Github user zfong commented on the pull request:

    https://github.com/apache/drill/pull/208#issuecomment-149259793
  
    Aman --  yup, saw that.  Thanks.
    
    On Mon, Oct 19, 2015 at 8:57 AM, Aman Sinha <notifications@github.com>
    wrote:
    
    > @zfong <https://github.com/zfong>, please see my last explanation about
    > why the repro does not occur at small scale. Hence, adding a unit test
    > won't help ... unless the static constant that controls the initial size of
    > the value vectors is made configurable...but that would require more code
    > changes.
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/drill/pull/208#issuecomment-149257300>.
    >



> IndexOutOfBoundsException for pruning on date column (at large scale)
> ---------------------------------------------------------------------
>
>                 Key: DRILL-3947
>                 URL: https://issues.apache.org/jira/browse/DRILL-3947
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.2.0
>            Reporter: Aman Sinha
>            Assignee: Mehant Baid
>
> When a large table (about 52 B records, 10K files, created with CTAS auto-partitioning)
partitioned by a 'date' column,  partition pruning is encountering an error.  At smaller scales,
partition pruning succeeds. At this time, the problem seems specific to date columns only.
This column is a nullable column and has NULL values in the data. 
> Here's the query:
> {code}
> explain plan for select count(*) from `table` where `date` = '2015-07-01';
> {code}
> Here's the error stack: 
> {code}
> WARN  o.a.d.e.p.l.partition.PruneScanRule - Exception while trying to prune partition.
> java.lang.IndexOutOfBoundsException: index: 4096, length: 1 (expected: range(0, 4096))
>         at io.netty.buffer.DrillBuf.checkIndexD(DrillBuf.java:189) ~[drill-java-exec-1.2.0.jar:4.0.27.Final]
>         at io.netty.buffer.DrillBuf.chk(DrillBuf.java:211) ~[drill-java-exec-1.2.0.jar:4.0.27.Final]
>         at io.netty.buffer.DrillBuf.setByte(DrillBuf.java:612) ~[drill-java-exec-1.2.0.jar:4.0.27.Final]
>         at org.apache.drill.exec.vector.UInt1Vector$Mutator.set(UInt1Vector.java:411)
~[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.drill.exec.vector.NullableDateVector$Mutator.set(NullableDateVector.java:440)
~[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.drill.exec.store.parquet.ParquetGroupScan.populatePruningVector(ParquetGroupScan.java:420)
~[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.drill.exec.planner.ParquetPartitionDescriptor.populatePartitionVectors(ParquetPartitionDescriptor.java:96)
~[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.drill.exec.planner.logical.partition.PruneScanRule.doOnMatch(PruneScanRule.java:212)
~[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.drill.exec.planner.logical.partition.ParquetPruneScanRule$2.onMatch(ParquetPruneScanRule.java:87)
[drill-java-exec-1.2.0.jar:1.2.0]
>         at org.apache.calcite.plan.volcano.VolcanoRuleCall.onMatch(VolcanoRuleCall.java:228)
[calcite-core-1.4.0-drill-r5.jar:1.4.0-drill-r5]
>         at org.apache.calcite.plan.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:808)
[calcite-core-1.4.0-drill-r5.jar:1.4.0-drill-r5]
> {code}



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

Mime
View raw message