Uh oh!
There was an error while loading. Please reload this page.
chore: move SanityChecker into physical-optimizer crate - #14083
Conversation
mnpw
commented
Jan 11, 2025
@alamb for your consideration. I don't like that |
alamb
commented
Jan 11, 2025
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 |
alamb
commented
Jan 12, 2025
Converting to draft given the dependency situation we have uncovered |
mnpw
commented
Jan 15, 2025
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-execution = { workspace = true } | ||
| datafusion-expr = { workspace = true } | ||
| datafusion-expr-common = { workspace = true, default-features = true } | ||
| datafusion-functions-aggregate = { workspace = true } |
There was a problem hiding this comment.
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:
alamb
commented
Jan 15, 2025
I will update the datafusion-cli cargo file as well |
mnpw
commented
Jan 15, 2025
Thanks @alamb for proactively reviewing and adding the fix commits. Much appreciated 🙏 |
alamb
commented
Jan 15, 2025
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?
SanityCheckerfromdatafusioncrate todatafusion-physical-optimizercrateAre these changes tested?
Ran
cargo testAre there any user-facing changes?
No