ARROW-11626: [Rust][DataFusion] Move [DataFusion] examples to own project#9494
ARROW-11626: [Rust][DataFusion] Move [DataFusion] examples to own project#9494Dandandan wants to merge 10 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9494 +/- ##
==========================================
- Coverage 82.49% 82.42% -0.08%
==========================================
Files 245 245
Lines 57347 57646 +299
==========================================
+ Hits 47311 47517 +206
- Misses 10036 10129 +93
Continue to review full report at Codecov.
|
|
This is a cool idea @Dandandan -- what do you think about doing this via features rather than its own crate? I can't really articulate clearly why I would prefer one way over the other. I will try and get my thoughts formed more coherently later today |
|
I have the feeling that using more features rather than moving the examples would be adding more knobs / complexity to the DataFusion crate. But I'm open for both options. |
|
@Dandandan I think this idea is worth pursuing -- would you be willing to ressurect this PR? |
|
PR is resurrected! (I think) @alamb |
alamb
left a comment
There was a problem hiding this comment.
I like this. What do you think @andygrove and @jorgecarleitao ?
rust/datafusion-examples/Cargo.toml
Outdated
There was a problem hiding this comment.
FYI @andygrove -- I am not sure what you think about possibly releasing the examples as a crate of their own. I personally think it would be necessary. However perhaps it would be the right way to to eventually to somehow link to the example code from the docs.rs page https://docs.rs/datafusion/3.0.0/datafusion/
I filed this JIRA https://issues.apache.org/jira/browse/ARROW-11863 to track that
There was a problem hiding this comment.
I'd lean on not publishing by default, so I'd prefer a publish = false on the Cargo file. I support clarifying this as part of ARROW-11863 @alamb.
There was a problem hiding this comment.
Added publish = false.
The examples are currently also not on https://docs.rs/datafusion/3.0.0/datafusion/ I think - agree that it would be very useful.
There was a problem hiding this comment.
The ok, outcome would be to point the docs from docs.rs always at master
another (better) option would be to link at a versioned url (based on published version)
https://github.com/apache/arrow/tree/apache-arrow-3.0.0
rust/datafusion/Cargo.toml
Outdated
f7f6103 to
edbea69
Compare
|
@alamb @Dandandan are we still planning on completing this? The benefits are tangible enough as they reduce the number of required dependencies, and we'll catch any breakages with CI### |
|
@nevi-me yeah - that's the idea from my side at least. I will update the PR again so it could be merged if it has enough support |
nevi-me
left a comment
There was a problem hiding this comment.
A change to not publish this, otherwise I think we can go ahead with this PR
rust/datafusion-examples/Cargo.toml
Outdated
There was a problem hiding this comment.
I'd lean on not publishing by default, so I'd prefer a publish = false on the Cargo file. I support clarifying this as part of ARROW-11863 @alamb.
|
Looks like test failed with 😞 |
alamb
left a comment
There was a problem hiding this comment.
I think we just need to clean up the CI and then this will be good to go. Thank you so much @Dandandan !
|
Oh no ! this PR seems like it needs a rebase |
Co-authored-by: Andrew Lamb <[email protected]>
bd26b02 to
19884c3
Compare
|
I have rebased this PR against master and hopefully will get it merged once CI passes |
|
thanks a lot @alamb ! |
|
The integration test failure seems unrelated (out of space): https://github.com/apache/arrow/pull/9494/checks?check_run_id=2213195937 |
|
I am going to merge this one |
Same idea as #9493 but for examples in DataFusion
FYI @alamb
Clean + building with
cargo test.Moving the micro benchmarks out of the crate is also another possibility.