Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

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.

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
22 checks passed
@alamb
Copy link
Contributor

alamb commented Nov 29, 2023

Thanks again @Jesse-Bakker !

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

Successfully merging this pull request may close these issues.

2 participants