java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))

incubator-drill-user | Timothy Chen | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: IndexOutOfBoundsException

    incubator-drill-user | 3 years ago | Timothy Chen
    java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))
  2. 0

    IndexOutOfBoundsException

    incubator-drill-user | 3 years ago | Vivekanand Ittigi
    java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))
  3. 0

    Re: IndexOutOfBoundsException

    incubator-drill-user | 3 years ago | Vivekanand Ittigi
    java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to load data in Drill

    incubator-drill-user | 3 years ago | Jinfeng Ni
    java.lang.IndexOutOfBoundsException: index: 31999268, length: 4 (expected: range(0, 4194244))

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      index: 8, length: 4 (expected: range(0, 8))

      at io.netty.buffer.AbstractByteBuf.checkIndex()
    2. Netty
      AbstractByteBuf.getInt
      1. io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1130)
      2. io.netty.buffer.AbstractByteBuf.getInt(AbstractByteBuf.java:378)
      2 frames
    3. org.apache.drill
      ResultEnumerator.moveNext
      1. org.apache.drill.exec.vector.UInt4Vector$Accessor.get(UInt4Vector.java:188)
      2. org.apache.drill.exec.vector.VarCharVector$Accessor.get(VarCharVector.java:238)
      3. org.apache.drill.exec.vector.VarCharVector$Accessor.getObject(VarCharVector.java:258)
      4. org.apache.drill.exec.vector.NullableVarCharVector$Accessor.getObject(NullableVarCharVector.java:245)
      5. org.apache.drill.sql.client.full.JsonHelper.get(JsonHelper.java:41)
      6. org.apache.drill.sql.client.full.BatchLoaderMap.getCurrentObject(BatchLoaderMap.java:112)
      7. org.apache.drill.sql.client.full.ResultEnumerator.moveNext(ResultEnumerator.java:51)
      7 frames
    4. Calcite Core
      OptiqResultSet.next
      1. net.hydromatic.optiq.runtime.ObjectEnumeratorCursor.next(ObjectEnumeratorCursor.java:44)
      2. net.hydromatic.optiq.jdbc.OptiqResultSet.next(OptiqResultSet.java:162)
      2 frames
    5. sqlline
      SqlLine.main
      1. sqlline.SqlLine$BufferedRows.<init>(SqlLine.java:2499)
      2. sqlline.SqlLine.print(SqlLine.java:1886)
      3. sqlline.SqlLine$Commands.execute(SqlLine.java:3835)
      4. sqlline.SqlLine$Commands.sql(SqlLine.java:3738)
      5. sqlline.SqlLine.dispatch(SqlLine.java:882)
      6. sqlline.SqlLine.begin(SqlLine.java:717)
      7. sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:460)
      8. sqlline.SqlLine.main(SqlLine.java:443)
      8 frames