Skip to content

feat: support ALP parquet encoding in writer options - #27036

Merged
alamb merged 2 commits into
apache:mainfrom
Surajsuthar:feat/added-alp-write-support
Nov 3, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
Surajsuthar:feat/added-alp-write-support

Conversation

@Surajsuthar

Copy link
Copy Markdown
Contributor

Add ALP to DataFusion's parquet encoding configuration, conversion, documentation, protobuf round-trip tests, and SQL writer coverage.

Important

Fork CI setup: For pull requests from a fork to main, enable workflows in your fork's Actions tab before you push.
See the fork CI setup guide.

Which issue does this PR close?

Rationale for this change

DataFusion could read ALP-encoded Parquet files but did not allow users
to select ALP when writing files.

What changes are included in this PR?

  • Add alp to DFParquetEncoding
  • Support ALP through SET datafusion.execution.parquet.encoding
  • Support ALP through format.encoding
  • Update configuration and SQL documentation
  • Add parser, conversion, protobuf, and SQLLogicTest coverage
  • Verify writing and reading ALP-encoded DOUBLE columns

What is the testing strategy for this PR?

Are there any user-facing changes?

Add ALP to DataFusion's parquet encoding configuration, conversion,
documentation, protobuf round-trip tests, and SQL writer coverage.
@github-actions github-actions Bot added documentation Improvements or additions to documentation sqllogictest SQL Logic Tests (.slt) common Related to common crate proto Related to proto crate labels Nov 3, 2026
@Surajsuthar

Copy link
Copy Markdown
Contributor Author

@alamb have a look

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thank you @Surajsuthar

@alamb
alamb enabled auto-merge November 3, 2026 16:20
@alamb
alamb added this pull request to the merge queue Nov 3, 2026
Merged via the queue into apache:main with commit 2f4d087 Nov 3, 2026
45 checks passed
alamb added a commit that referenced this pull request Nov 6, 2026
…kport #27036) (#27093)

## Which issue does this PR close?
- part of #24461
- Backport of #27036 to `branch-56`
- Related to #26936.

Co-authored-by: Suraj <surajsuthar0067@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate documentation Improvements or additions to documentation proto Related to proto crate sqllogictest SQL Logic Tests (.slt) v57.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the Parquet ALP encoding in the parquet writer options (format.encoding / datafusion.execution.parquet.encoding)

2 participants