Skip to content

doc-gen: Migrate builtin scalar functions from code based documentation to attribute based #13671

Description

@comphead

Is your feature request related to a problem or challenge?

It is needed to migrate whenever it is possible builtin UDF documentation from code based to attribute based.

Function list can be found in SessionStateDefaults::default_scalar_functions()

Example can be found https://github.com/apache/datafusion/pull/13646/files#diff-1528bf73810e3fb12fd1d4e76a8b46acb650549ef37d3c131464e087f97ca515L25

The translation can be done manually or in semi automatic way, uncommenting a function in PR #13669 locally. This will generate local text files with attribute text which can be copy pasted to structs. However its still needed to remove code based documentation manually, add imports, etc

Please refer to PR #13646 which completed the migration for aggregation functions

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added
    documentationImprovements or additions to documentation
    enhancementNew feature or request
    help wantedExtra attention is needed
    and removed
    help wantedExtra attention is needed
    on Dec 5, 2024
  2. changed the title [-]doc-gen: Migrate builtin functions from code based documentation to attribute based[/-] [+]doc-gen: Migrate builtin scalar functions from code based documentation to attribute based[/+] on Dec 6, 2024
  3. Chen-Yuan-Lai commented on Dec 9, 2024

    @Chen-Yuan-Lai
    Contributor

    take

  4. Chen-Yuan-Lai commented on Dec 27, 2024

    @Chen-Yuan-Lai
    Contributor

    Hi @alamb @Omega359 @comphead I've split the changes into several smaller PRs based on function categories. Could you please review these PRs? Thx 🙏

    BTW, I put Cargo.toml and Cargo.lock changes in #13928 , this PR may need to be merged first than other array functions PRs

  5. Omega359 commented on Dec 27, 2024

    @Omega359
    Contributor

    Thanks for all your work on this! I'll do my best to start reviewing these PR's this weekend if no one beats me to it.

  6. alamb commented on Dec 28, 2024

    @alamb
    Contributor

    Thank you @Chen-Yuan-Lai and @Omega359 for driving this forward

  7. comphead commented on Dec 28, 2024

    @comphead
    ContributorAuthor

    Supposedly it was closed automatically, I think we can close it once all the PRs merged.

  8. comphead commented on Jan 16, 2025

    @comphead
    ContributorAuthor

    Okay, I think some still left

    • GreatestFunc
    • ArrowCastFunc
    • ArrowTypeOfFunc
    • CoalesceFunc
    • GetFieldFunc
    • LeastFunc
    • NamedStructFunc
    • NullIfFunc
    • NVLFunc
    • NVL2Func
    • StructFunc
  9. Chen-Yuan-Lai commented on Jan 17, 2025

    @Chen-Yuan-Lai
    Contributor

    @comphead I'll complete these ignored functions

  10. alamb commented on Jan 17, 2025

    @alamb
    Contributor

    Nice work everyone and thank you @Chen-Yuan-Lai especially 🚀

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions