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

Sudheesh Katkam resolved DRILL-941.
-----------------------------------

    Resolution: Fixed

> IndexOutOfBoundException for Tpch Q18 on SF1 scale
> --------------------------------------------------
>
>                 Key: DRILL-941
>                 URL: https://issues.apache.org/jira/browse/DRILL-941
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Operators
>            Reporter: Aman Sinha
>            Assignee: Ramana Inukonda Nagaraj
>             Fix For: 0.5.0
>
>
> On latest master branch (commit level fb2091a)  and with maxwidth per 
> endpoint set to 20 in drill-override.conf,  I am able to reproduce an IOBE 
> for TPCH Q18  on the SF1 scale factor.   The stack trace and relevant 
> generated code is shown below. 
> java.lang.IndexOutOfBoundsException: index: 32, length: 8 (expected: range(0, 
> 0))
>         io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1130) 
> ~[netty-buffer-4.0.7.Final.jar:na]
>         io.netty.buffer.AbstractByteBuf.getLong(AbstractByteBuf.java:391) 
> ~[netty-buffer-4.0.7.Final.jar:na]
>         
> org.apache.drill.exec.memory.AccountingByteBuf.getLong(AccountingByteBuf.java:290)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.vector.BigIntVector$Accessor.get(BigIntVector.java:272) 
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.test.generated.StreamingAggregatorGen532.outputRecordKeysPrev(StreamingAggTemplate.java:223)
>  ~[na:na]
>         
> org.apache.drill.exec.test.generated.StreamingAggregatorGen532.outputToBatchPrev(StreamingAggTemplate.java:285)
>  ~[na:na]
>         
> org.apache.drill.exec.test.generated.StreamingAggregatorGen532.doWork(StreamingAggTemplate.java:168)
>  ~[na:na]
>         
> org.apache.drill.exec.physical.impl.aggregate.StreamingAggBatch.next(StreamingAggBatch.java:107)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:69)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.physical.impl.join.HashJoinBatch.executeBuildPhase(HashJoinBatch.java:270)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.physical.impl.join.HashJoinBatch.next(HashJoinBatch.java:166)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:69)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:63)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:47)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.next(ProjectRecordBatch.java:83)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.physical.impl.partitionsender.PartitionSenderRootExec.next(PartitionSenderRootExec.java:91)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
>         
> org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:98)
>  
> ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 217:        public boolean outputRecordKeys(int inIndex, int outIndex)
> 218:            throws SchemaChangeException
> 219:        {
> 220:            {
> 221:                BigIntHolder out21 = new BigIntHolder();
> 222:                {
> 223:                    out21 .value = vv18 .getAccessor().get((inIndex));
> 224:                }
> 225:                BitHolder out25 = new BitHolder();
> 226:                out25 .value = 1;
> 227:                if (!vv22 .getMutator().setSafe((outIndex), out21 
> .value)) {
> 228:                    out25 .value = 0;
> 229:                }
> 230:                if (out25 .value == 0) {
> 231:                    return false;
> 232:                }
> 233:                return true;
> 234:            }
> 235:        }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to