Skip to content

GH-40096: [C++][Parquet] Expand ParquetVersion enum values - #47618

Closed
thisisnic wants to merge 13 commits into
apache:mainfrom
thisisnic:GH-40096_parquet_enum
Closed

thisisnic wants to merge 13 commits into
apache:mainfrom
thisisnic:GH-40096_parquet_enum

Conversation

@thisisnic

@thisisnic thisisnic commented Sep 22, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

ParquetVersion enum values weren't up to date with Parquet versions

What changes are included in this PR?

Update ParquetVersion to latest Parquet versions

Are these changes tested?

Yes

Are there any user-facing changes?

Yes - default assumption for Parquet version 2.X is 2.12 not 2.6.

@github-actions

Copy link
Copy Markdown

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

Comment thread cpp/src/parquet/metadata_test.cc Resolved
Comment thread r/R/enums.R
Comment on lines +138 to +140
PARQUET_1_0 = 0L, PARQUET_2_4 = 1L, PARQUET_2_6 = 2L,
PARQUET_2_7 = 3L, PARQUET_2_8 = 4L, PARQUET_2_9 = 5L, PARQUET_2_10 = 6L,
PARQUET_2_11 = 7L, PARQUET_2_12 = 8L

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Apparently this change ensures it matches up with the C++; not sure about this myself.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@jonkeane If we export this enum, does that mean we shouldn't go changing previous values, or that it's actually important to sync up with the C++ values? I'm not confident I fully understand how enums are used here and what matches what.

Comment thread cpp/src/parquet/metadata_test.cc Resolved
@thisisnic thisisnic closed this Nov 11, 2025
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.

1 participant