jonkeane commented on code in PR #49713:
URL: https://github.com/apache/arrow/pull/49713#discussion_r3068867710


##########
r/tests/testthat/test-duckdb.R:
##########
@@ -190,6 +190,18 @@ test_that("to_arrow roundtrip, with dataset (without 
wrapping)", {
   expect_r6_class(out, "RecordBatchReader")
 })
 
+test_that("to_arrow preserves grouping from duckdb tables", {
+  ds <- InMemoryDataset$create(example_data)
+
+  out <- ds |>
+    to_duckdb() |>
+    group_by(lgl) |>
+    to_arrow()
+
+  expect_s3_class(out, "arrow_dplyr_query")
+  expect_equal(dplyr::group_vars(out), "lgl")
+})

Review Comment:
   I trust this fails before the changes in duckdb.R?



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

Reply via email to