Skip to content

New concatenation operator for working with arrays #6603

Closed
@izveigor

Description

@izveigor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions