Update extending-operators.md#15832
Update extending-operators.md#15832Adez017 wants to merge 33 commits intoapache:mainfrom Adez017:patch-1
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 ? |
…ch-1 :wq sdaklas � : especially if it merges an updated upstream into a topic branch.
|
@alamb i think it perfect now and working . please take a look |
|
@alamb @xudong963 gentleman's tis need your attention now |
|
|
||
| Note: DataFusion contains a highly optimized version of the `TopK` operator, but we present a simplified version in this section for explanatory purposes. For more information, see the full implementation in the [DataFusion repository]. | ||
|
|
||
| [DataFusion repository]: https://docs.rs/datafusion/latest/datafusion/physical_plan/struct.TopK.html |
There was a problem hiding this comment.
Or maybe it should be a link to the source code - I was trying to avoid some link that would get out of date but maybe that in inevitable
I believe you can follow the steps here: https://github.com/apache/datafusion/tree/main/docs#build--preview |
There was a problem hiding this comment.
Thank you @Adez017 and @xudong963 -- I agree this is very close.
This current PR also adds a copy of adding a user defined plan. Maybe we can also remove the old copy?
|
|
||
| Note: DataFusion contains a highly optimized version of the `TopK` operator, but we present a simplified version in this section for explanatory purposes. For more information, see the full implementation in the [DataFusion repository]. | ||
|
|
||
| [DataFusion repository]: https://docs.rs/datafusion/latest/datafusion/physical_plan/struct.TopK.html |
There was a problem hiding this comment.
Or maybe it should be a link to the source code - I was trying to avoid some link that would get out of date but maybe that in inevitable
| } | ||
| ``` | ||
|
|
||
| DataFusion supports extension of operators by transforming logical plan and execution plan through customized [optimizer rules](https://docs.rs/datafusion/latest/datafusion/optimizer/trait.OptimizerRule.html). This section will use the µWheel project to illustrate such capabilities. |
There was a problem hiding this comment.
This section now seems somewhat to duplicate the new sections
There was a problem hiding this comment.
i think we can rationalize it
There was a problem hiding this comment.
how about this ? we can write a separate guide or something for the µWheel , removing the content from this PR and make it as a separate . if you are agree @alamb , I would love to do the job if possible
|
@alamb cc: @xudong963 check it now |
|
hey @alamb @xudong963 since your last visit I had made some changes . please take a look |
|
Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days. |
|
hi @alamb please have a look on this |
alamb
left a comment
There was a problem hiding this comment.
Thanks @Adez017
Thank you for your patience.
I think there are a few outstanding issues we should to resolve prior to merging this:
- Remove the (now) redundant example, as specified in the original ticket #15774
- Try and add a bit more detail to the examples.
Removing the existing example may be harder as it seems the test has morphed to also be testing user defined invariants.
I will give it a shot
Hi @alamb, thank you for your time and efforts. i think there might be some updates that had happened since my last visit . i would love it if someone help me out with that |

Which issue does this PR close?
user_defined_plan.rsto theextending-operatorsdoc #15774Rationale for this change
updated the extending-operators.md file