Skip to content

Migrate Array function Documentation to code - #12948

Merged
alamb merged 5 commits into
apache:mainfrom
jonathanc-n:migrate-array
Oct 16, 2024
Merged

Migrate Array function Documentation to code#12948
alamb merged 5 commits into
apache:mainfrom
jonathanc-n:migrate-array

Conversation

@jonathanc-n

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes#12927 .

Rationale for this change

What changes are included in this PR?

Moved the static array docs to the new one.

Are these changes tested?

Are there any user-facing changes?

@github-actionsgithub-actionsBot added the documentation Improvements or additions to documentation label Oct 15, 2024
@jonathanc-n

jonathanc-n commented Oct 15, 2024

Copy link
Copy Markdown
ContributorAuthor

@Omega359@alamb Not too sure where to put the unnest documentation here.

@alambalamb changed the title Migrate Array DocumentationMigrate Array Documentation to codeOct 15, 2024
@alambalamb changed the title Migrate Array Documentation to codeMigrate Array function Documentation to codeOct 15, 2024

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @jonathanc-n -- this is epic

I went through this PR carefully and it all looks good to me


## Struct Functions

- [unnest](#unnest-struct)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think unnest is special and not a scalar function. Perhaps as a follow on PR we can make a new page called "Special Functions" and put it there.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can create one for that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only other special function I know of is make_map. See

if name.eq("make_map"){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed as #13036

Comment threaddatafusion/functions-nested/src/extract.rs
}
static DOCUMENTATION: OnceLock<Documentation> = OnceLock::new();

fn get_flatten_doc() -> &'static Documentation {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is so nice to have this documentation as part of the function

Comment threaddatafusion/functions-nested/src/make_array.rs Outdated
@alamb

Copy link
Copy Markdown
Contributor

I ran ./dev/update_function_docs.sh and merged up from main to get the CI passing on this PR

@alamb
alamb merged commit 91899d4 into apache:mainOct 16, 2024
@alamb

Copy link
Copy Markdown
Contributor

🚀

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

Labels

documentationImprovements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate documentation for all array functions from scalar_functions.md to code

3 participants

@jonathanc-n@alamb@Omega359