Skip to content

Conversation

@Omega359
Copy link
Contributor

@Omega359 Omega359 commented Mar 3, 2024

Which issue does this PR close?

Closes #9437

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@Omega359 Omega359 marked this pull request as ready for review March 3, 2024 23:06
- a new line in `create_physical_expr`/`create_physical_fun` mapping the built-in to the implementation
- tests to the function.
- Add the actual implementation of the function to a new module file within:
- [here](../../../datafusion/functions-array/src) for array functions
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

- [here](../../../datafusion/functions/src/math) for math functions
- [here](../../../datafusion/functions/src/regex) for regex functions
- [here](../../../datafusion/functions/src/string) for string functions
- create a new module [here](../../../datafusion/functions/src) for other functions. New function modules should likely have their own feature flag.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- create a new module [here](../../../datafusion/functions/src) for other functions. New function modules should likely have their own feature flag.
- create a new module [here](../../../datafusion/functions/src) for other functions.

This is slightly unclear as for me... Or we probably need to find better statement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, very true, I'll see if I can come up with something. I was trying to say that any new 'area' under functions, say datafusion/functions/src/vectors should be guarded by a feature flag.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @Omega359 and @comphead.

@alamb alamb added the documentation Improvements or additions to documentation label Mar 5, 2024
@alamb alamb merged commit 6041dea into apache:main Mar 5, 2024
@Omega359 Omega359 deleted the feature/doc_update branch April 1, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update contributor guide with updated scalar function howto

3 participants