jonkeane commented on a change in pull request #11645:
URL: https://github.com/apache/arrow/pull/11645#discussion_r745979831
##########
File path: r/tests/testthat/test-schema.R
##########
@@ -218,3 +222,19 @@ test_that("Schema to C-interface", {
# must clean up the pointer or we leak
delete_arrow_schema(ptr)
})
+
+test_that("Schemas from lists", {
+ name_list_schema <- schema(list(b = double(), c = string(), d = int8()))
+
+
+ field_list_schema <- schema(
+ list(
+ field("b", double()),
+ field("c", bool()),
+ field("d", string())
+ )
+ )
+
+ expect_equal(name_list_schema, schema(b = double(), c = string(), d =
int8()))
+ expect_equal(field_list_schema, schema(b = double(), c = bool(), d =
string()))
Review comment:
😍
--
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]