Skip to content

Move code in user_defined_plan.rs to the extending-operators doc #15774

Open

Description

@xudong963

From the intention: https://github.com/apache/datafusion/blob/main/datafusion/core/tests/user_defined/user_defined_plan.rs#L18-L24, I think it's better to put the code in examples.

Also, the code isn't solid, and its tests are fragile, such as #15744 (comment).

cc @alamb

Activity

  1. alamb commented on Apr 19, 2025

    @alamb
    Contributor

    I agree -- better still would be to put the content into https://datafusion.apache.org/library-user-guide/extending-operators.html

  2. changed the title [-]Move code in `user_defined_plan.rs` to example[/-] [+]Move code in `user_defined_plan.rs` to the `extending-operators` doc[/+] on Apr 19, 2025
  3. Adez017 commented on Apr 19, 2025

    @Adez017
    Contributor

    HI @xudong963 , i want to work on this , but could you clarify what exactly we need to do ?

  4. xudong963 commented on Apr 21, 2025

    @xudong963
    MemberAuthor

    @Adez017 Hi, the file contains an example about how to define an extending operator, what we need to do is to move the case to the https://datafusion.apache.org/library-user-guide/extending-operators.html doc. You can refer the custom table provider doc format: https://datafusion.apache.org/library-user-guide/custom-table-providers.html

  5. krishna4040 commented on Jul 15, 2025

    @krishna4040

    take

  6. krishna4040 commented on Jul 15, 2025

    @krishna4040

    @xudong963 I see not activity on this issue or either of the PR opened. Is this issue available, can i work on this?

  7. xudong963 commented on Jul 19, 2025

    @xudong963
    MemberAuthor

    @xudong963 I see not activity on this issue or either of the PR opened. Is this issue available, can i work on this?

    Yes, it's available, thanks!

  8. alamb commented on Jul 21, 2025

    @alamb
    Contributor

    Note there is a PR here

    I think this ticket is largely a documentation exercise in writing docs and will be tough for a newcomer to complete. I hope to help get it over the line later today

  9. added 2 commits that reference this issue on Oct 30, 2025
    1afd572
    55f9546
  10. codewarnab commented on Nov 2, 2026

    @codewarnab

    Hi @alamb, I’m interested in working on this. I read the feedback on #15832, #18372, and #22871, and the TopK example still appears to be in the test file rather than the guide.

    Is this still something the project would like to have? If so, I’d be happy to look at updating the walkthrough and preserving the invariant tests.

  11. alamb commented on Nov 2, 2026

    @alamb
    Contributor

    Thanks @codewarnab . Yes I think we would be interested in it

    However, please please please optimize for readability -- do it in small PRs that are easy / quick to review; make sure it is clear and concise (not AI super-hard-to-understand prose)

    Thank you

  12. codewarnab commented on Nov 2, 2026

    @codewarnab

    Got it . I'll keep the diff readable and minimal and will split in smaller prs if the diff is large .

  13. codewarnab commented on Nov 2, 2026

    @codewarnab

    take

  14. codewarnab commented on Nov 2, 2026

    @codewarnab

    I opened #27011 for this issue. Please let me know if any changes are needed.

    In a previous PR, you suggested moving the invariant tests to unit tests. Would you still like me to do that? If so, should I do it in #27011 or in a follow-up PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions