You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/09/08 08:48:02 UTC
[GitHub] [arrow] thisisnic commented on a diff in pull request #14047: ARROW-17620: [R] as_arrow_array() ignores type for StructArrays
thisisnic commented on code in PR #14047:
URL: https://github.com/apache/arrow/pull/14047#discussion_r965675719
##########
r/tests/testthat/test-Array.R:
##########
@@ -532,6 +532,9 @@ test_that("Array$create() can handle data frame with custom struct type (not inf
a <- Array$create(df, type = type)
expect_type_equal(a$type, type)
+ ## as_arrow_array respects `type` argument (ARROW-17620)
+ expect_type_equal(a, as_arrow_array(df, type = type))
Review Comment:
As we have a few other tests for the functionality of `as_arrow_array()`, and this is testing one of the function's arguments, I think it's significant enough to live in its own `test_that()` block. Would you mind making that change, and moving it down (I think those tests start near line 1021 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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org