-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore: move SanityChecker
into physical-optimizer
crate
#14083
Conversation
@alamb for your consideration. I don't like that |
Thanks @mnpw -- I agree this is not good and we shouldn't merge it in like that (and in fact I think it failed the circular dependency check) I think one of the major sources of this dependency is the use of Since |
Converting to draft given the dependency situation we have uncovered |
Here's my understanding of the issue:
In this case, best solution seems to be to move SanityChecker to I have re-worked the PR and made the following changes:
|
datafusion-expr-common = { workspace = true, default-features = true } | ||
datafusion-functions-aggregate = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are trying very hard to avoid this dependency -- specifically we are trying to avoid having the optimizer depend on any actual function implementations
The separation ensures that there is no special treatment for provided functions vs built in ones
I played around with this some morning and I found a way to remove it here:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mnpw -- this looks great. I had one improvement but we can do this as a follow on PR
I will update the datafusion-cli cargo file as well |
Thanks @alamb for proactively reviewing and adding the fix commits. Much appreciated 🙏 |
Thank you for helping push this along ❤️ |
Which issue does this PR close?
Closes #14072.
Rationale for this change
From #14072
What changes are included in this PR?
SanityChecker
fromdatafusion
crate todatafusion-physical-optimizer
crateAre these changes tested?
Ran
cargo test
Are there any user-facing changes?
No