Skip to content

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

Open
divjotarora wants to merge 1 commit into
apache:mainfrom
divjotarora:fix-codecs
Open

divjotarora wants to merge 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.

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

1 participant