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: Use Expr::apply() instead of inspect_expr_pre() #9984

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

peter-toth
Copy link
Contributor

@peter-toth peter-toth commented Apr 7, 2024

Currently inspect_expr_pre() is a specaial wrapper around Expr::apply(), but all callsites of inspect_expr_pre() could use Expr::apply() directly. This PR (toghether with #9913) refactors all callsites of inspect_expr_pre() so technically it could be removed too. But because inspect_expr_pre() is a public function removing it would be a breaking change...

@alamb
Copy link
Contributor

alamb commented Apr 7, 2024

But because inspect_expr_pre() is a public function removing it would be a breaking change..

I think what we should do is deprecate it -- It could be done in a follow on PR

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.

Thanks @peter-toth -- 👍

@alamb alamb merged commit 7acc8f1 into apache:main Apr 7, 2024
25 checks passed
@peter-toth
Copy link
Contributor Author

Thanks @alamb for the review!

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

Successfully merging this pull request may close these issues.

2 participants