Skip to content

Optimize array_concat to use MutableArrayData #20619

@neilconway

Description

@neilconway

Is your feature request related to a problem or challenge?

The current array_concat implementation does a lot of unnecessary copying, and calls the Arrow concat kernel twice. This could be simplified, following a similar approach to that used in #19996 for array_remove -- read list offsets directly and use MutableArrayData::extend() to copy element ranges in bulk

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions