Skip to content

fix(avro): correctly set nullability for ListType#709

Merged
zeroshade merged 2 commits intoapache:mainfrom
Willem-J-an:main
Mar 13, 2026
Merged

fix(avro): correctly set nullability for ListType#709
zeroshade merged 2 commits intoapache:mainfrom
Willem-J-an:main

Conversation

@Willem-J-an
Copy link
Copy Markdown
Contributor

Rationale for this change

Nullability of a list field itself is lost when converting from avro to arrow schema; only the nullability of the list members is applied.

What changes are included in this PR?

Use buildArrowField function for listfield to leverage arrow field creation; which applies nullability as expected. Also use buildArrowField for float,double,boolean case for consistency.

Are these changes tested?

Added testcase for a nullable list.

Are there any user-facing changes?

Debatable

@Willem-J-an Willem-J-an requested a review from zeroshade as a code owner March 13, 2026 12:39
Copy link
Copy Markdown
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looks good assuming all the CI pass

@Willem-J-an
Copy link
Copy Markdown
Contributor Author

Should pass eventually when the✨align😂

@zeroshade zeroshade merged commit fc20f37 into apache:main Mar 13, 2026
51 of 85 checks passed
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.

2 participants