Uh oh!
There was an error while loading. Please reload this page.
feat: Make parquet_encryption a non-default feature - #17137
Conversation
alamb
commented
Aug 12, 2025
CI failure tracked by |
alamb
commented
Aug 12, 2025
Updating to get clean CI run |
alamb
left a comment
There was a problem hiding this comment.
This makes sense to me -- thank you @miroim
I think we need to document the new config as well as add a new CI test to make sure the crate works without the feature. For example:
datafusion/.github/workflows/rust.yml
Lines 207 to 208 in 5c370fa
And compile datafusion with the parquet and parquet_encryption features.
cc @adamreeve and @corwinjoy I would be interested to hear your opinion on this change
Uh oh!
There was an error while loading. Please reload this page.
corwinjoy
commented
Aug 14, 2025
This change looks reasonable to me. |
adamreeve
commented
Aug 14, 2025
👍 makes sense to me too. There is already a datafusion/.github/workflows/rust.yml Line 222 in 5c370fa I think we need to enable datafusion/.github/workflows/rust.yml Line 297 in 5c370fa |
miroim
commented
Aug 15, 2025
Should we also enable datafusion/.github/workflows/rust.yml Line 558 in 5c370fa |
alamb
commented
Aug 15, 2025
I don't have any strong opinions -- I don't think it is necessary |
alamb
commented
Aug 15, 2025
I agree this is needed to ensure the feature keeps working We also need to check that the flags work in isolation as described in #17137 (review) |
| - name: Check parquet encryption (parquet, parquet_encryption) | ||
| run: cargo check --profile ci --no-default-features -p datafusion --features=parquet,parquet_encryption |
There was a problem hiding this comment.
This seems like it should be redundant but then I noticed that the parquet_encryption feature doesn't actually depend on the parquet feature. Maybe we should remove this extra check run as the one above already tests the parquet_encryption feature, and update datafusion/core/Cargo.toml so that the parquet_encryption feature depends on the parquet feature rather than just dep:parquet?
alamb
left a comment
There was a problem hiding this comment.
Thank you again @miroim and @adamreeve
alamb
commented
Aug 22, 2025
I merged up from main and minimized this diff for clarity about what actually changed. |
Uh oh!
There was an error while loading. Please reload this page.
alamb
commented
Aug 22, 2025
Thanks again @miroim |
Which issue does this PR close?
Rationale for this change
as discussion from @alamb on: #16649 (comment)
What changes are included in this PR?
parquet_encryptionfeature from the default features.ParquetEncryptionOptionsexplaining that theparquet_encryptionfeature flag must be enabled to use Parquet encryption.parquet_encryptionfeature in thedatafusion-cli.parquet_encryptionfeature in thedatafusion/sqllogictest.parquet_encryptionfeature in thedatafusion-examples.Are these changes tested?
doc test
Are there any user-facing changes?
Change
parquet_encryptionfeature from the default feature to non-default