-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update extending-operators.md #15832
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
base: main
Are you sure you want to change the base?
Conversation
hi @xudong963 , i want to ask that did we had to rewrite the part of code https://github.com/apache/datafusion/blob/main/datafusion/core/tests/user_defined/user_defined_plan.rs#L18-L24 afterwards or just had to migrate the whole code into extending-operators . |
I think after migrating them, we don't need to retain the code |
does that mean that I need to migrate all the code from |
Yes, except tests. |
that means above it :
|
Hi @xudong963 , i think it is ready , give it a check |
You can refer to the doc: https://datafusion.apache.org/library-user-guide/custom-table-providers.html. It should contain the real code https://github.com/apache/datafusion/blob/main/datafusion/core/tests/user_defined/user_defined_plan.rs#L458-L916 to describe the process of defining an extending operator, not only an SQL example. |
hey @xudong963 , check it out now . |
You can rebase with main |
Would anyone happen to know how to preview the HTML format for the PR changes? |
doe this solve the issue ? |
You can open the failed CI and see what's wrong:
The error is fixed in main, so rebasing your branch with main will fix the error |
Thank for your help @xudong963 but I think it didn't work for the failing workflow |
Sorry I am on vacation , you can try to fix by the error hints in ci |
i Think we need @alamb help now . could you help ? |
@alamb , please take a look |
could anyone please help here ? |
If you take a look at the file, there is a macro in #[cfg(doctest)]
doc_comment::doctest!(
"../../../docs/source/library-user-guide/extending-operators.md",
library_user_guide_extending_operators
);
Yes, there is an example: https://github.com/apache/datafusion/blob/main/datafusion/catalog/src/table.rs#L203-L214 You can add # at the beginning of the imports to hide them in doc |
hey @xudong963 , i think there might be something that I am missing I had done imports but it cause failing again and again , could you please help out ? |
Here is a writeup that can probably help: datafusion/datafusion/core/src/lib.rs Lines 852 to 876 in 555fc2e
In this case I think you will need to make each example self-contained (so add |
Hi @alamb thanks for the help , I tried doing so and eventually I understand the problem but couldn't find a complete solution . |
Which issue does this PR close?
user_defined_plan.rs
to theextending-operators
doc #15774Rationale for this change
updated the extending-operators.md file