devinrkeane opened a new issue, #34319:
URL: https://github.com/apache/arrow/issues/34319
### Describe the bug, including details regarding any error messages,
version, and platform.
I run pretty straight forward usage of `read_parquet` in several workflows
at work. This has been a tremendous upgrade from using rds files with the same
content for all the reasons arrow exists. Some of our datasets are wider than
longer, which isnt great for parquet, but we usually only need a small subset.
I updated to arrow v11.0.0.2 yesterday and noticed that the identical
workflows are loading files 50-60x slower.
A benchmark are selectively choosing 200 columns from a (3400 rows x 16000
column dataset, each column containing two text attributes)
~300ms with 9.0.0
~17000ms using v11.0.0.2.
If I save the file I read from v9 saving with v11, then re-read with v11,
it's the same , ~17 seconds
This happens on my ubuntu 20.04 system and mac with Monterrey. I installed
the binary on ubuntu and believe the mac as well. I understand there are some
significant changes under the hood with c++ under the v10 updates but based on
the update notes no action would be required for doing anything fancy with
ubuntu (gcc v9.4) or mac (clang v13).
Any idea what's going on? We store thousands of parquet files so wondering
if we should avoid >= v11
here's a reprex:
`
library(arrow)
library(microbenchmark)
# fake data, 3500x16000 with attributes
test_data <- as.data.frame(
lapply(setNames(1:16000, paste0("col", 1:16000)), function(x) {
col <- sample(c(1:5, NA), 3500, replace = TRUE)
levels(col) <- paste("level", 1:4)
attr(col, "text") <- "test question text"
col
})
)
# write out the file somewhere
file <- "~/Desktop/test_data_v9.parquet"
### using arrow 9.0.0
packageVersion('arrow')
arrow::write_parquet(test_data, file)
### benchmark
microbenchmark::microbenchmark(
arrow::read_parquet(file, col_select = 1:200), times = 10
)
### NOW SWITCH to arrow 11.0.0.2 just from the 9.0.0 data
packageVersion('arrow')
microbenchmark::microbenchmark(
arrow::read_parquet(file, col_select = 1:200), times = 10
)
### now re-create, save, re-read using all v11
packageVersion('arrow')
file2 <- "~/Desktop/test_data_v11.parquet"
arrow::write_parquet(test_data, file2)
### benchmark
microbenchmark::microbenchmark(
arrow::read_parquet(file2, col_select = 1:200), times = 10
)
`
### Component(s)
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]