sap1ens opened a new issue, #834: URL: https://github.com/apache/arrow-java/issues/834
### Describe the bug, including details regarding any error messages, version, and platform. When using Avro's `ValidatingDecoder`, any schema with a nullable field fails with the following exception: ``` Exception in thread "main" org.apache.avro.AvroTypeException: Attempt to process a int when a union was expected. at org.apache.avro.io.parsing.Parser.advance(Parser.java:91) at org.apache.avro.io.ValidatingDecoder.readInt(ValidatingDecoder.java:81) at org.apache.arrow.adapter.avro.consumers.AvroNullableConsumer.consume(AvroNullableConsumer.java:44) ``` Reason: `AvroNullableConsumer` uses `readInt` to read the index, but it should use `readIndex` instead. It's irrelevant in case of a `BinaryDecoder`, for example (`readIndex` is the same as `readInt`), but `ValidatingDecoder`s and any Decoders based on that have different logic. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org