ianmcook commented on a change in pull request #9958:
URL: https://github.com/apache/arrow/pull/9958#discussion_r610611111



##########
File path: r/tests/testthat/test-dataset.R
##########
@@ -1767,3 +1767,13 @@ test_that("Dataset writing: unsupported features/input 
validation", {
     write_dataset(ds, tempfile(), basename_template = NULL)
   )
 })
+
+# see https://issues.apache.org/jira/browse/ARROW-11328
+test_that("Collecting zero columns from a dataset doesn't return entire 
dataset", {
+  tmp <- tempfile()
+  write_dataset(mtcars, tmp, format = "parquet")
+  expect_equal(
+    open_dataset(tmp) %>% select() %>% collect() %>% dim(),
+    c(32,0)

Review comment:
       Space after comma (https://style.tidyverse.org/syntax.html#commas)
   ```suggestion
       c(32, 0)
   ```




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


Reply via email to