apache / apache/datafusion

Make it possible to disable compression algorithm feature flags inside the parquet dependency without disabling parquet.

Open
#10,101 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

Hi, I'm trying to reduce the size of my compiled binary. Using cargo bloat, it appears that a large portion of the size (around 10%) is coming from the dependency on the brotli compression algorithm. I don't plan on compressing or decompressing anything using brotli, so I'd like to disable this dependency. Ideally, I would only depend on zstd, since that is the only algorithm I plan to use.

Currently, I have `default-features = false` and `features = ["parquet"]`. This is enough to pull in all of the compression algorithms, since the parquet has default features enabled.

I'm less familiar with Rust build systems, so my analysis of the situation might be incorrect.

### Describe the solution you'd like

Could we do something similar to #10058, where top level features are exposed by the datafusion crate, and this toggles on or off the features inside the parquet crate?

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Cargo feature declarations for DataFusion and its parquet dependency, using cargo tree to inspect which compression features are enabled. Done means parquet remains available while brotli can be disabled and zstd can remain enabled, with the resulting dependency graph confirming the unused algorithm is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.