-
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
implement string_to_array #7577
Conversation
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 @casperhart
It is neat to see something like split
be added to DataFusion
Yes, the addition of a new sql function is a user facing change. However, I'm not sure how to update the docs, but happy to do so if you can point me in the right direction.
The docs to update are in https://github.com/apache/arrow-datafusion/blob/main/docs/source/user-guide/sql/scalar_functions.md#array-functions
cc @jayzhan211 and @izveigor do either if you have some time to review this PR?
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.
LGTM!
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.
LGTM!
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 @casperhart and @jayzhan211 for the reivew. I think this PR is looking very nice 👨🍳 👌
Closes #7555
What changes are included in this PR?
string_to_array
similar to postgres. Functionality is based off the function with the same name here: https://www.postgresql.org/docs/9.1/functions-array.htmlAre these changes tested?
I've included tests in both
tests/sql/expr.rs
andfunctions.slt
. This duplication may not be necessary, so I'd be happy to remove one.Are there any user-facing changes?
Yes, the addition of a new sql function is a user facing change. However, I'm not sure how to update the docs, but happy to do so if you can point me in the right direction.