-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Updated extending operators documentation #15612
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
@alamb - Since I'm first-time contributor, could you help trigger the CI please? |
Seems like it is actually trying to compile the doctest code. If this isn't required then perhaps a |
Yes, we run all the examples in the doc tests -- instructions for doing so locally are here datafusion/datafusion/core/src/lib.rs Lines 836 to 861 in 784df33
The idea is to ensure that the examples in the docs do not drift apart from reality |
Thank you for this contribution @the0ninjas and the hints @Max-Meldrum I am marking the PR as draft while we work on getting the CI passing. Then please mark it ready for review again! |
Right, I see. The current example code is using stuff that is external to the Datafusion repo and is over at datafusion-uwheel. For instance the try_rewrite function. What could be a good approach here? |
One idea could be to bring some simplified version of this to the doc example, or maybe leave a link to the other repository |
Another alternate to make the doc tests pass is to comment the code out, using
For example, see |
It should passes the test if ```rust,ignore is used instead. And we could link a reference to the external code https://github.com/uwheel/datafusion-uwheel |
I believe this PR is now ready to be merged @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.
Thank you @the0ninjas and @Max-Meldrum -- this is a very nice addition to the docs
Thanks again @Max-Meldrum @edmondop and @the0ninjas |
Which issue does this PR close?
What changes are included in this PR?