-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Milestone
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 factorThis 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.
Reporter: Neal Richardson / @nealrichardson
Assignee: Hiroaki Yutani / @yutannihilation
PRs and other links:
Note: This issue was originally created as ARROW-7045. Please see the migration documentation for further details.