You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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.
0 commit comments