Skip to content

GH-49706 [C++][Parquet] Make writing of path_in_schema optional#49707

Draft
etseidl wants to merge 6 commits intoapache:mainfrom
etseidl:optional_path_in_schema
Draft

GH-49706 [C++][Parquet] Make writing of path_in_schema optional#49707
etseidl wants to merge 6 commits intoapache:mainfrom
etseidl:optional_path_in_schema

Conversation

@etseidl
Copy link
Copy Markdown
Contributor

@etseidl etseidl commented Apr 10, 2026

Rationale for this change

path_in_schema in the ColumnMetaData is redundant. apache/parquet-format#563 proposes fixing this by marking the field optional in the Thrift definition.

What changes are included in this PR?

Modify the thrift generated code after makeing path_in_schema optional. Add options to WriterProperties to control the behavior, with the default being to continue writing the field. Makes changes to the metadata to account for the field now being optional.

Are these changes tested?

Yes, adds a unit test to confirm the field is not present when that is requested.

Are there any user-facing changes?

Adds a new configuration option, but no behavioral changes by default.

@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #49706 has been automatically assigned in GitHub to PR creator.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++][Parquet] Make writing of ColumnMetaData.path_in_schema optional

1 participant