Skip to content

fix(parquet/metadata): use default writer properties when props is nil - #1058

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-metadata-default-props
Open

fix(parquet/metadata): use default writer properties when props is nil#1058
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-metadata-default-props

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

NewFileMetadataBuilder documents that nil writer properties select the defaults, but dereferenced props while checking encryption settings and panicked.

What changes are included in this PR?

Initialize standard writer properties when props is nil, before reading encryption configuration.

Are these changes tested?

Yes. A regression test exercises the documented nil call with a valid schema.

go test ./parquet/metadata -run TestNewFileMetadataBuilderUsesDefaultProperties

Are there any user-facing changes?

Passing nil writer properties now behaves as documented.

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 29, 2026 16:54
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