Reranko05 commented on code in PR #50226:
URL: https://github.com/apache/arrow/pull/50226#discussion_r3447910779


##########
ruby/red-arrow/lib/arrow/record-batch.rb:
##########
@@ -135,6 +78,20 @@ def method_missing(name, *args, &block)
 
     private
 
+    def merge_target_class
+      RecordBatch
+    end
+
+    def create_merged_container(fields, arrays)
+      record_batch = self.class.new(
+        Schema.new(fields),
+        n_rows,
+        arrays,
+      )

Review Comment:
   Updated. Thanks for the suggestion. `RecordBatch.new(schema, arrays)` now 
handles arrays directly, so `create_merged_container` can use it without 
passing `n_rows`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to