Skip to content

[Parquet] Support per-column encodings in parquet-rewrite #10643

Description

@sdf-jkl

Is your feature request related to a problem or challenge?

parquet-rewrite --encoding currently applies one encoding to every column. This makes type-specific encodings difficult to use with mixed schemas.

For example, ALP supports only FLOAT and DOUBLE. Applying it globally to a file containing other physical types fails after output-file creation. Other type-specific encodings have similar behavior.

This depends on #9372 and should be worked on after that PR is merged.

Describe the solution you would like

Add per-column encoding selection to parquet-rewrite, while retaining the global encoding option as a default.

Validate the selected encoding against each column physical type before rewriting begins. Unsupported combinations should return an actionable error, for example that ALP supports only FLOAT and DOUBLE, without leaving an incomplete output file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions