Skip to content

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

Merged
zeroshade merged 1 commit intoapache:mainfrom
zeroshade:fix-pqarrow-list-nullability
Mar 12, 2025
Merged

fix(pqarrow): respect list element nullability during conversion#311
zeroshade merged 1 commit intoapache:mainfrom
zeroshade:fix-pqarrow-list-nullability

Conversation

@zeroshade
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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.

3 participants