kou commented on code in PR #48584:
URL: https://github.com/apache/arrow/pull/48584#discussion_r2634337479


##########
ruby/red-arrow/test/test-table.rb:
##########
@@ -72,6 +72,18 @@ def array_like.to_ary
       assert_equal(Arrow::Table.new(schema, [Arrow::UInt8Array.new([1, 2, 
3])]),
                    Arrow::Table.new(numbers: array_like))
     end
+
+    test("{Symbol: nested non-negative integer Array}") do
+      table = Arrow::Table.new(numbers: [[0, 1, 2], [3, 4]])
+      assert_equal("list<item: uint8>",
+                   table.schema["numbers"].data_type.to_s)
+    end
+
+    test("{Symbol: nested signed integer Array}") do
+      table = Arrow::Table.new(numbers: [[0, -1, 2], [3, 4]])
+      assert_equal("list<item: int8>",
+                   table.schema["numbers"].data_type.to_s)
+    end

Review Comment:
   How about using 
https://github.com/apache/arrow/blob/649a37223933380005d2b928eb598e10785a4e81/ruby/red-arrow/test/test-array-builder.rb#L133-L148
 instead of this file?



-- 
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