GH-834: Fix Avro nullable consumer to use readIndex for unions by Kaustav-Sarkar · Pull Request #1147 · apache/arrow-java · GitHub
Skip to content

GH-834: Fix Avro nullable consumer to use readIndex for unions#1147

Open
Kaustav-Sarkar wants to merge 1 commit into
apache:mainfrom
Kaustav-Sarkar:gh-834
Open

GH-834: Fix Avro nullable consumer to use readIndex for unions#1147
Kaustav-Sarkar wants to merge 1 commit into
apache:mainfrom
Kaustav-Sarkar:gh-834

Conversation

@Kaustav-Sarkar

Copy link
Copy Markdown
Contributor

Description:

Updates Avro consumers to use readIndex() for unions and readString() for strings instead of readInt() and readBytes(). This ensures compatibility with Avro's ValidatingDecoder, which strictly enforces type-specific read methods. Includes a regression test for nullable strings.

@github-actions

Copy link
Copy Markdown

@Kaustav-Sarkar

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant