Skip to content

Avro adapter: AvroStringConsumer should use readString instead of readBytes #832

Open

Description

@sap1ens

Describe the bug, including details regarding any error messages, version, and platform.

Currently, AvroStringConsumer calls decoder.readBytes instead of decoder.readString. This can lead to exceptions when using ResolvingDecoder:

org.apache.avro.AvroTypeException: Attempt to process a bytes when a string was expected.

	at org.apache.avro.io.parsing.Parser.advance(Parser.java:91)
	at org.apache.avro.io.ResolvingDecoder.readBytes(ResolvingDecoder.java:236)
	at org.apache.arrow.adapter.avro.consumers.AvroStringConsumer.consume(AvroStringConsumer.java:41)

Activity

  1. added
    Type: bug
    on Aug 28, 2025
  2. changed the title [-]AvroStringConsumer should use readString instead of readBytes[/-] [+]Avro adapter: AvroStringConsumer should use readString instead of readBytes[/+] on Aug 31, 2025
  3. added this to the 20.1.0 milestone on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions