jonkeane commented on a change in pull request #11645:
URL: https://github.com/apache/arrow/pull/11645#discussion_r745855102
##########
File path: r/R/schema.R
##########
@@ -328,3 +339,7 @@ print.arrow_r_metadata <- function(x, ...) {
utils::str(.unserialize_arrow_r_metadata(x))
invisible(x)
}
+
+schema_check <- function(items) {
+ all(map_lgl(.list, ~ inherits(.x, "Field"))) || FALSE
+}
Review comment:
It might be helpful as a helper especially if we accept a list as input
(or for testing). But up to you if you think it's better as a helper or inline
--
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]