Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-417

Nullable Var Length vector offsetVector not populated correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      For example, it is common to see stack traces like this when doing basic queries:

      java.lang.IllegalArgumentException: length: -4 (expected: >= 0)
      io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1127) ~[netty-buffer-4.0.7.Final.jar:na]
      io.netty.buffer.PooledUnsafeDirectByteBufL.getBytes(PooledUnsafeDirectByteBufL.java:116) ~[drill-buffers-1.0.0-m2-incubating-SNAPSHOT.jar:na]
      org.apache.drill.exec.memory.AccountingByteBuf.getBytes(AccountingByteBuf.java:314) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
      org.apache.drill.exec.vector.VarCharVector.copyFrom(VarCharVector.java:176) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
      org.apache.drill.exec.vector.NullableVarCharVector.copyFrom(NullableVarCharVector.java:211) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
      org.apache.drill.exec.test.generated.CopierGen1.doEval(CopierTemplate2.java:75) ~[na:na]
      org.apache.drill.exec.test.generated.CopierGen1.copyRecords(CopierTemplate2.java:57) ~[na:na]
      org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.doWork(RemovingRecordBatch.java:91) ~[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:62) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
      org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.next(ScreenCreator.java:80) ~[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:83) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_21]
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_21]
      java.lang.Thread.run(Thread.java:722) [na:1.7.0_21]

      Attachments

        1. DRILL-417.patch
          5 kB
          Steven Phillips

        Issue Links

          Activity

            People

              sphillips Steven Phillips
              sphillips Steven Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: