Skip to content

[C++][Parquet] "Keep redacted metadata version for old readers" #50969

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

This code here looks slightly fishy:

column_chunk_->__set_encrypted_column_metadata(encrypted_column_metadata);
if (encrypted_footer) {
column_chunk_->__isset.meta_data = false;
} else {
// Keep redacted metadata version for old readers
column_chunk_->__isset.meta_data = true;
column_chunk_->meta_data.__isset.statistics = false;
column_chunk_->meta_data.__isset.encoding_stats = false;
}

Basically, when encrypting a Parquet file with plaintext footer, the Parquet writer also keeps most of the column metadata in plaintext (except statistics).

Component(s)

C++, Parquet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions