-
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
Support string concat ||
for StringViewArray
#11766
Comments
||
for StringViewArray
||
for StringViewArray
If anyone wants to work on this, I would suggest starting with a PR that has some tests and does coercsion (which will make the query run) and then we can implement optimziation later |
i'm really interested in working on this issue. Feeling little doubtful, but let me try. I'm might seek some help, if not i will unassign myself . |
Thanks @dharanad --- I would recommend starting with a test in Then I would recommend trying to change the coercion logic so the arguments are coerced to Then in a second PR (or maybe even ticket) we can figure out how to implement the native opreration of concat (that is likely much tricker than coercing) |
take |
Linked issue : #11881 @alamb I was thinking the right way to solve the issue would to add support for Do you have any alternative approaches in mind? If so, any pointers would be greatly appreciated. |
Yes, I agree this would be ideal. I recommend calling it https://docs.rs/arrow/latest/arrow/compute/kernels/concat_elements/fn.concat_elements_bytes.html I started looking into how to explain wiring this into binary.rs and it was a mess, so I just made a skeleton PR here: Perhaps you can use that a template ? |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Then run
Describe the solution you'd like
I would like the query to work
Describe alternatives you've considered
We can probably get the query to work by fixing the coercion logic to coerce to
Utf8
, but that will be less efficient than implementing native StringView support forconcat
The coercion is here:
datafusion/datafusion/expr/src/type_coercion/binary.rs
Lines 116 to 122 in 6e2ff29
The physical expression implementation starts here
datafusion/datafusion/physical-expr/src/expressions/binary.rs
Line 661 in 6e2ff29
Additional context
The text was updated successfully, but these errors were encountered: