Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
test_that("Factors are preserved when writing/reading from Parquet", { tf <- tempfile() on.exit(unlink(tf)) df <- data.frame(a = factor(c("a", "b"))) write_parquet(df, tf) expect_equivalent(read_parquet(tf), df) })
Fails:
`object` not equivalent to `expected`. Component “a”: target is character, current is factor
This has to do with the translation with Parquet and not the R <--> Arrow type mapping (unlike ARROW-7028). If you write_feather and read_feather, the test passes.
Attachments
Issue Links
- links to