Skip to content

[pull] main from apache:main#75

Merged
pull[bot] merged 1 commit intoburaksenn:mainfrom
apache:main
Apr 2, 2026
Merged

[pull] main from apache:main#75
pull[bot] merged 1 commit intoburaksenn:mainfrom
apache:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 2, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…al 'substrait' feature (#21268)

## Which issue does this PR close?

- Closes #21269

## Rationale for this change

`datafusion-substrait` is a heavyweight dependency that most developers
and users don't need. Making it optional saves compile time for the
common case.

## What changes are included in this PR?

- `datafusion-substrait` is now an optional dependency in
`datafusion-sqllogictest/Cargo.toml`
- New `substrait` feature flag gates the dependency
- `#[cfg(feature = "substrait")]` gates the module, imports, and
`run_test_file_substrait_round_trip` function
- No-op fallback function returns an error when the feature is disabled
- CI workflow updated to pass `--features substrait` for the round-trip
test

## Are these changes tested?

- Compiles without `substrait` feature (default)
- Compiles with `--features substrait`
- CI substrait round-trip test updated to enable the feature

## Are there any user-facing changes?

No — this only affects the sqllogictest binary, not the datafusion
library itself. The substrait round-trip test requires `--features
substrait` to run.
@pull pull bot locked and limited conversation to collaborators Apr 2, 2026
@pull pull bot added the ⤵️ pull label Apr 2, 2026
@pull pull bot merged commit 2d5f016 into buraksenn:main Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant