Skip to content

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

Merged
Jefffrey merged 1 commit into
apache:58_maintenancefrom
Jefffrey:backport_12165_58
Nov 12, 2026
Merged

Jefffrey merged 1 commit into
apache:58_maintenancefrom
Jefffrey:backport_12165_58

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 Changes to the parquet crate label Nov 12, 2026
@Jefffrey Jefffrey added the bug label Nov 12, 2026
@Jefffrey
Jefffrey merged commit 6edde86 into apache:58_maintenance Nov 12, 2026
15 checks passed
@Jefffrey
Jefffrey deleted the backport_12165_58 branch November 12, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants