-
Notifications
You must be signed in to change notification settings - Fork 1.5k
refactor: Apply minor refactorings to functions-array
crate
#9788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
functions-array
createfunctions-array
crate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @erenavsarogullari -- this looks like a very nice improvement to me
datafusion/functions-array/README.md
Outdated
@@ -21,7 +21,7 @@ | |||
|
|||
[DataFusion][df] is an extensible query execution framework, written in Rust, that uses Apache Arrow as its in-memory format. | |||
|
|||
This crate contains functions for working with arrays, such as `array_append` that work with | |||
This crate contains functions for working with arrays, such as `array_append` that works with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the original was more correct as functions
is plural
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
pub fn array_resize_inner(arg: &[ArrayRef]) -> datafusion_common::Result<ArrayRef> { | ||
pub(crate) fn array_resize_inner( | ||
arg: &[ArrayRef], | ||
) -> datafusion_common::Result<ArrayRef> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also change this to just Result<ArrayRef>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed by covering functions-array
crate. Please see commit: 638c3a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks @alamb and @jayzhan211 for the reviews and feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @erenavsarogullari
Which issue does this PR close?
Closes #9787.
What changes are included in this PR?
This PR aims to do following refactoring:
1- Being added
make_scalar_function
support to missedinvoke
functions,2- Aligning rust-doc across array functions,
3- Removing redundant imports,
4- Fixing typo problems,
5- Rename
core.rs
->make_array.rs
.Are these changes tested?
Yes, all
array.slt
tests pass.Are there any user-facing changes?
No