Skip to content
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

New concatenation operator for working with arrays #6603

Closed
1 task
izveigor opened this issue Jun 8, 2023 · 0 comments · Fixed by #6615
Closed
1 task

New concatenation operator for working with arrays #6603

izveigor opened this issue Jun 8, 2023 · 0 comments · Fixed by #6615
Labels
enhancement New feature or request

Comments

@izveigor
Copy link
Contributor

izveigor commented Jun 8, 2023

Is your feature request related to a problem or challenge?

Follow on to #6119

For efficient use of arrays arrow-datafusion should support some operations:

  • Concatenate (use operator ||) (array_concat, array_append and array_prepend analog)

Describe the solution you'd like

Examples:

select make_array(1, 2, 3) || make_array(4, 5, 6);
----
[1, 2, 3, 4, 5, 6]
select 1 || make_array(2, 3, 4);
----
[1, 2, 3, 4]
select make_array(1, 2, 3) || 4;
----
[1, 2, 3, 4]

Describe alternatives you've considered

No response

Additional context

https://www.postgresql.org/docs/current/functions-array.html

@izveigor izveigor added the enhancement New feature or request label Jun 8, 2023
@izveigor izveigor changed the title New operators for working with arrays New concatenation operator for working with arrays Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant