boshek commented on code in PR #13183:
URL: https://github.com/apache/arrow/pull/13183#discussion_r876183537
##########
r/tests/testthat/test-csv.R:
##########
@@ -564,6 +564,29 @@ test_that("write_csv_arrow can write from
RecordBatchReader objects", {
expect_equal(nrow(tbl_in), 3)
})
+test_that("write_csv_arrow() compresses by file extension", {
+ skip_if_not_available("gzip")
+ tfgz <- tempfile(fileext = ".csv.gz")
+ tf <- tempfile(fileext = ".csv")
+ on.exit(unlink(tf))
+ on.exit(unlink(tfgz))
+
+ write_csv_arrow(tbl, tf)
+ write_csv_arrow(tbl, tfgz)
+ expect_lt(file.size(tfgz), file.size(tf))
+})
+
+test_that("read/write compressed file", {
Review Comment:
Oh good point no reason.
--
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]