-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: make_array support empty arguments #6593
Conversation
@@ -404,7 +404,7 @@ pub fn create_physical_fun( | |||
Arc::new(array_expressions::array_to_string) | |||
} | |||
BuiltinScalarFunction::Cardinality => Arc::new(array_expressions::cardinality), | |||
BuiltinScalarFunction::MakeArray => Arc::new(array_expressions::array), | |||
BuiltinScalarFunction::MakeArray => Arc::new(array_expressions::array_make), |
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.
Won't make_array
be a better, more consistent renaming for the function?
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 fixed this in d91f667 (it was a little tricky because make_array
is also a function in arrow so some new aliasing was needed
---- | ||
[4, 5] | ||
|
||
# trim_array scalar function #3 |
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.
# trim_array scalar function #4
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, @parkma99. It looks good!
Thanks for reviewing |
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 took the liberty of merging this branch from master and resolving the conflicts (which I largely created via #6612) in 0947cfd Since I was changing stuff anyways, I also made the change suggested by @dadepo in #6593 (comment) as part of |
Thank you @alamb |
* feat: make_array support empty arguments * fix fmt error * fix error * array_append support empty array * array_prepend support empty make_array * array_concat support empty make_array * fix clippy * update * fix * rename `array_make` --> `make_array` --------- Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
Closes #6561
Rationale for this change
What changes are included in this PR?
Are these changes tested?
add some tests in array.slt
Are there any user-facing changes?