-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-11626: [Rust][DataFusion] Move [DataFusion] examples to own project #9494
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. What do you think @andygrove and @jorgecarleitao ?
rust/datafusion-examples/Cargo.toml
Outdated
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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.
🎉
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
nevi-me
left a comment
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.
LGTM, pending CI
|
Looks like test failed with 😞 |
alamb
left a comment
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 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 <andrew@nerdnetworks.org>
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.