-
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
select array_concat([])
panicked
#10200
Comments
I can fix this one if no one is working on this |
@Lordworms Not sure what is your idea to solve this problem. I expect this to be solved with the correct signature. |
Hi @jayzhan211 I was going to implement the same behavior like DuckDB and make datafusion support query like |
@Lordworms |
Yes, I understand, but if we need to validate argument in signature a suitable way to do it is more likely what you did in #8594
I'll try to see if I can come up with a better way, thanks for your advice! |
After #10439, I believe cc @Lordworms |
I have a PR that updates the array_concat signature, maybe I can resolve the panic issue together. |
Actually, I'm thinking about whether we should change the behavior of array_concat similar to postgres and duckdb. |
Fixed by #10790 |
Describe the bug
thread 'main' panicked at datafusion/datafusion/functions-array/src/concat.rs:275:32:
index out of bounds: the len is 0 but the index is 0
To Reproduce
Run any of the following queries in CLI.
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: