-
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
Remove unused dependencies and features #12808
Conversation
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.
Thank you @jonahgao -- this is a nice cleanup
@@ -69,6 +68,7 @@ rand = { workspace = true } | |||
tokio = { workspace = true } | |||
|
|||
[dev-dependencies] | |||
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.
👍 nice
As a follow on it would be great to remove this dependency too, but having it as a dev dependency is clearly better than a real dependency in my mind
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.
Some tests require an aggregate function and will check the aggregation results, so not sure if it's possible to remove this dependency 🤔.
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.
Maybe we can move that test into the sql_integration
binary or something
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 found that some tests call private methods, which means we can't move them to a different package. Perhaps we can try to address this in a subsequent PR.
Which issue does this PR close?
N/A
Rationale for this change
Found by cargo-udeps. There are some unused dependencies in Cargo.toml
The
regex_expressions
andencoding_expressions
feature originate from thedatafusion-functions
package.The
datafusion-physical-expr
package doesn’t depend ondatafusion-functions
, so I think it should not incorporate these two features.What changes are included in this PR?
regex_expressions
andencoding_expressions
feature fromdatafusion-physical-expr
Are these changes tested?
Yes
Are there any user-facing changes?
No