Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pqarrow): respect list element nullability during conversion #311

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

zeroshade
Copy link
Member

Rationale for this change

While working on iceberg-go I discovered a bug in how we converted Arrow <--> Parquet schemas when dealing with the nullability of the element for a list field.

What changes are included in this PR?

Fixing the proper handling for nullability instead of blanket setting it to nullable for elements of lists. Thus correctly propagating the nullability.

Are these changes tested?

Yes, unit tests are added.

Are there any user-facing changes?

Parquet schemas that are being created from Arrow Schemas will now properly respect the required/optional for elements of lists.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
suzuki-shunsuke Shunsuke Suzuki
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@zeroshade zeroshade merged commit 44534c1 into apache:main Mar 12, 2025
23 checks passed
@zeroshade zeroshade deleted the fix-pqarrow-list-nullability branch March 12, 2025 14:30
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.

None yet

3 participants