arrow
arrow copied to clipboard
[Ruby] Move merge implementation to ColumnContainable
Describe the enhancement requested
Arrow::Table#merge and Arrow::RecordBatch#merge have similar implementations, resulting in duplicated merge logic.
Move the common merge implementation to Arrow::ColumnContainable and keep container-specific behavior (such as column conversion and container creation) in each class.
Additional context
This is a follow-up to #50175 as suggested by @kou
Component(s)
Ruby
Issue resolved by pull request 50226 https://github.com/apache/arrow/pull/50226