Hi Andong, This does sound like a bug. Could you see if this occurs with the latest release (0.17.0) and file a JIRA with a reproducible test case if it still throws an exception?
Thanks, Micah On Mon, May 4, 2020 at 9:38 PM Andong Zhan <andong.z...@snowflake.com.invalid> wrote: > Hi Arrow developers, > > I have a quick question about Arrow Java code in 0.15.1. When I try to call > setSafe for a BitVector, I may get an IndexOutOfBoundsException like below: > > java.lang.IndexOutOfBoundsException: index: 3, length: 1 (expected: > range(0, 3)) > > at io.netty.buffer.ArrowBuf.checkIndexD(ArrowBuf.java:337) > at io.netty.buffer.ArrowBuf.chk(ArrowBuf.java:324) > at io.netty.buffer.ArrowBuf.getByte(ArrowBuf.java:526) > at > > org.apache.arrow.vector.BitVectorHelper.setValidityBit(BitVectorHelper.java:77) > at org.apache.arrow.vector.BitVector.set(BitVector.java:331) > at org.apache.arrow.vector.BitVector.setSafe(BitVector.java:383) > > Is this a bug? I haven't encountered anything like this while calling > setSafe for other types of vectors. > > Best, > > -- > Andong zhan > Software Engineer > > Snowflake Inc. > 450 Concar Drive, San Mateo, CA 94402 > *Email:* andong.z...@snowflake.com >