potential bug?
animeshtrivedi opened this issue · 1 comments
animeshtrivedi commented
A dataBuf.clear()
might be required here before setting limit
and position
? Otherwise in my parquet reader I get
java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:244)
at com.ibm.crail.memory.OffHeapBuffer.position(OffHeapBuffer.java:46)
at com.ibm.crail.core.CoreStream.prepareAndTrigger(CoreStream.java:239)
at com.ibm.crail.core.CoreStream.dataOperation(CoreStream.java:105)
at com.ibm.crail.core.CoreInputStream.read(CoreInputStream.java:77)
...
patrickstuedi commented
Agree. Fixed.