Skip to content

[57_maintenance] fix(parquet): error when writing bloom filters for encrypted columns - #12193

Merged
Jefffrey merged 2 commits into
apache:57_maintenancefrom
Jefffrey:backport_12165_57
Nov 12, 2026
Merged

Jefffrey merged 2 commits into
apache:57_maintenancefrom
Jefffrey:backport_12165_57

Conversation

@Jefffrey

Copy link
Copy Markdown
Contributor

…pache#12165)

# Which issue does this PR close?

- related to apache#12166

# Rationale for this change

Writing encrypted bloom filters is not implemented in the Rust parquet
writer. Today, when bloom filters are enabled together with encryption,
the writer writes the bloom filter of an encrypted column in
**plaintext**.

The C++ writer raises an explicit "not yet implemented" error in this
case rather than writing the filter:

https://github.com/apache/arrow/blob/87eb47ece82003145ffff6b6b9b64321af996649/cpp/src/parquet/file_writer.cc#L523-L525

# What changes are included in this PR?

- Return `ParquetError::NYI` if a bloom filter is enabled when
encryption is requested on the same column
- Document the restriction on
`WriterPropertiesBuilder::with_file_encryption_properties`.

I tried to keep the error as scoped as possible (to minimize the cases
that are rejected)

# Are these changes tested?

Yes, new tests in `parquet/tests/encryption/encryption.rs`

# Are there any user-facing changes?

Yes: writing a file with encryption properties and bloom filters enabled
for an encrypted column now returns an error, where it previously
succeeded and wrote the bloom filter unencrypted.

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
@boring-cyborg boring-cyborg Bot added the parquet parquet crate label Nov 12, 2026
@Jefffrey Jefffrey added the bug Squash those bugs label Nov 12, 2026
@Jefffrey
Jefffrey merged commit 8684d64 into apache:57_maintenance Nov 12, 2026
15 checks passed
@Jefffrey
Jefffrey deleted the backport_12165_57 branch November 12, 2026 12:24
@Jefffrey

Copy link
Copy Markdown
Contributor Author

thanks @Rich-T-kid

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

Labels

bug Squash those bugs parquet parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants