Skip to content

Minor: Move some datafusion-optimizer::utils down to datafusion-expr::utils #8354

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

Jesse-Bakker
Copy link
Contributor

These utils manipulate LogicalPlans and Exprs and may be useful in
projects that only depend on datafusion-expr

Which issue does this PR close?

Related: #8312 (comment)

Rationale for this change

The moved utils don't depend on anything in datafusion-optimizer and may be
more broadly useful

What changes are included in this PR?

Move some utils that don't depend on anything optimizer-related from datafusion-optimizer::utils
to datafusion-expr::utils

Are there any user-facing changes?

The moved functions are still available under their old names, but will emit
a deprecation warning suggesting to use their new location.

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate substrait Changes to the substrait crate labels Nov 29, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Jesse-Bakker -- this looks great. Leaving deprecation warnings is very good as well

@alamb alamb changed the title Move some datafusion-optimizer::utils down to datafusion-expr::utils Minor: Move some datafusion-optimizer::utils down to datafusion-expr::utils Nov 29, 2023
These utils manipulate `LogicalPlan`s and `Expr`s and may be useful in
projects that only depend on `datafusion-expr`
@Jesse-Bakker
Copy link
Contributor Author

I always forget about doc-tests 😅

@alamb alamb merged commit 11f164c into apache:main Nov 29, 2023
@alamb
Copy link
Contributor

alamb commented Nov 29, 2023

Thanks again @Jesse-Bakker !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules substrait Changes to the substrait crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants