nealrichardson commented on a change in pull request #9681:
URL: https://github.com/apache/arrow/pull/9681#discussion_r592788405
##########
File path: r/tests/testthat/test-dataset.R
##########
@@ -846,6 +846,38 @@ test_that("mutate() with NULL inputs", {
)
})
+test_that("empty mutate()", {
+ expect_equal(
+ ds %>%
+ mutate() %>%
+ collect(),
+ ds %>%
+ collect()
+ )
+})
+
+test_that("transmute() with NULL inputs", {
+ expect_equal(
+ ds %>%
+ transmute(int = NULL) %>%
+ collect(),
+ ds %>%
+ select() %>%
Review comment:
I'm not sure that you need the tests both here and in
test-dplyr-mutate.R--they're using the same R code.
Also see ARROW-11328, which suggests `select()` doesn't do what is expected
for Datasets, so this test would mean that both are wrong here. (It's a
separate problem, about the C++ library and not the R NSE code, so I wouldn't
solve it here.)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]