Skip to content

GH-53518: [Parquet] Reject unsupported compression codecs - #53522

Merged
pitrou merged 1 commit into
apache:mainfrom
divjotarora:fix-codecs
Oct 13, 2026
Merged

pitrou merged 1 commit into
apache:mainfrom
divjotarora:fix-codecs

Conversation

@divjotarora

@divjotarora divjotarora commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Rationale for this change

See #53518 for rationale. Treating unknown compression codecs as UNCOMPRESSED is wrong and at best causes the read to fail late during decoding and at worst yields incorrect results if the compressed stream is actually a valid decodable set of bytes (very unlikely).

What changes are included in this PR?

This PR causes unsupported compression codecs to fail a read eagerly during Thrift parsing.

Are these changes tested?

Yes, new test case added to metadata_test.cc

Are there any user-facing changes?

No

Was AI used for this PR?

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Closes #53518

@github-actions github-actions Bot added the awaiting review Awaiting review label Oct 13, 2026
@github-actions

Copy link
Copy Markdown

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

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, thank you @divjotarora

@pitrou
pitrou merged commit 7ee1528 into apache:main Oct 13, 2026
55 of 56 checks passed
@pitrou pitrou removed the awaiting review Awaiting review label Oct 13, 2026
@divjotarora
divjotarora deleted the fix-codecs branch October 13, 2026 12:54
@github-actions github-actions Bot added the awaiting committer review Awaiting committer review label Oct 13, 2026
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] Parquet treats unknown compression codec as uncompressed

2 participants