You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "EmilyMatt (via GitHub)" <gi...@apache.org> on 2025/03/12 10:14:09 UTC
[I] Remove all Cargo sub-dependencies? [datafusion-comet]
EmilyMatt opened a new issue, #1513:
URL: https://github.com/apache/datafusion-comet/issues/1513
### What is the problem the feature request solves?
There are many redundant dependencies in the project's Cargo.toml files at the moment.
I believe almost all datafusion-X crates can be removed from the dependencies and be directly accessed from the main datafusion crate
(I believe I've seen only one instance in which datafusion_common was needed as those specific functions weren't exported, but i'm pretty sure even then they could have been modified to not need it)
The same goes for all the arrow-X crates, all the required structs are available via arrow::X
I think it both makes the dependency tree cleaner, and allows easier maintenance (I.e., modifying a single version instead of many etc)
I believe all features can be accessed via the main crate as well.
But perhaps there's a reason I'm not aware of which is why this was chosen.
### Describe the potential solution
Simply removing all the datafusion_X and arrow_X crates,
In the absolute majority of cases even a simple search-and-replace of "arrow_data::" to "arrow::data::" is sufficient, but some things like arrow_schema::SchemaRef need to be accessed using arrow::datatypes::SchemaRef, and arrow::array::ArrayData likewise.
still, that is a rather cheap fix.
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Remove all Cargo sub-dependencies? [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #1513:
URL: https://github.com/apache/datafusion-comet/issues/1513#issuecomment-2717797164
The motivation was to only use the parts of Arrow and DataFusion that we need, rather than import all of it. It would be interesting to run a clean build with the current approach and the propsed approach and see what difference it makes to build times.
I agree that just depending on the top-level Arrow and DataFusion crates would be simpler.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Remove all Cargo sub-dependencies? [datafusion-comet]
Posted by "EmilyMatt (via GitHub)" <gi...@apache.org>.
EmilyMatt commented on issue #1513:
URL: https://github.com/apache/datafusion-comet/issues/1513#issuecomment-2718355179
I think that the moment we add `datafusion` to the dependencies, all its dependencies are compiled anyway, so we don't save anything in compile time, but I'm willing to take a look at a compile time comparison when I have a moment^
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Remove all Cargo sub-dependencies? [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #1513: Remove all Cargo sub-dependencies?
URL: https://github.com/apache/datafusion-comet/issues/1513
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Remove all Cargo sub-dependencies? [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #1513:
URL: https://github.com/apache/datafusion-comet/issues/1513#issuecomment-2718609573
That's a good point. Since we already import the root crate, there is no need to explicitly import the others.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org