thisisnic commented on code in PR #50367:
URL: https://github.com/apache/arrow/pull/50367#discussion_r3852167092
##########
r/tests/testthat/test-dataset-write.R:
##########
@@ -1054,3 +1049,13 @@ test_that("Row order is preserved when writing large
parquet dataset", {
# But ordered is exactly equal.
expect_equal(ordered_ds$x, df$x)
})
+
+test_that("write_dataset maps format 'text' to 'csv' (GH-38217)", {
+ df <- example_data[c("int", "dbl", "chr")]
+
+ dst_dir <- make_temp_dir()
+ write_dataset(df, dst_dir, format = "text")
+
+ expect_identical(dir(dst_dir), "part-0.csv")
+ expect_equal(open_dataset(dst_dir, format = "csv") |> collect(), df)
+})
Review Comment:
```suggestion
```
--
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]