Skip to content

fix: make the sql feature truly optional (#20625)#20680

Open
comphead wants to merge 1 commit intoapache:branch-53from
comphead:b53
Open

fix: make the sql feature truly optional (#20625)#20680
comphead wants to merge 1 commit intoapache:branch-53from
comphead:b53

Conversation

@comphead
Copy link
Contributor

@comphead comphead commented Mar 3, 2026

Which issue does this PR close?

N/A

Rationale for this change

Backport for #20625

When enabling the recursive_protection feature for the datafusion crate, the sql feature is enabled. This is undesirable if the downstream project would like the sql feature to be off.

What changes are included in this PR?

Use the ? syntax for features of dependencies for recursive_protection. This was already correctly done for other features such as unicode_expressions.

https://doc.rust-lang.org/cargo/reference/features.html

Are these changes tested?

N/A

Are there any user-facing changes?

This makes dependency management better for downstream projects and is not a breaking change.

Which issue does this PR close?

  • Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

## Which issue does this PR close?

N/A

## Rationale for this change

When enabling the `recursive_protection` feature for the `datafusion`
crate, the `sql` feature is enabled. This is undesirable if the
downstream project would like the `sql` feature to be off.

## What changes are included in this PR?

Use the `?` syntax for features of dependencies for
`recursive_protection`. This was already correctly done for other
features such as `unicode_expressions`.

<https://doc.rust-lang.org/cargo/reference/features.html>

## Are these changes tested?

N/A

## Are there any user-facing changes?

This makes dependency management better for downstream projects and is
not a breaking change.
@github-actions github-actions bot added the core Core DataFusion crate label Mar 3, 2026
@comphead comphead requested a review from adriangb March 3, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants