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
Describe the enhancement requested
Arrow::Table#mergeandArrow::RecordBatch#mergehave similar implementations, resulting in duplicated merge logic.Move the common merge implementation to
Arrow::ColumnContainableand 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