ag1805x commented on issue #45645:
URL: https://github.com/apache/arrow/issues/45645#issuecomment-2692456856
It seems it is trying to load the data in RAM. Memory usage in Rstudio goes
upto about 200GB and then crashes. I tried putting a connection to file in
to_duckdb() but does not benefit.
I also tried duckdb without arrow but same issue.
```
con <- dbConnect(duckdb(), dbdir = "my-db.duckdb", read_only = FALSE)
tbl(con, "read_parquet('path/*.parquet', hive_partitioning = true)") |>
group_by(sample_id, gene1, gene2) %>%
summarise(mean_importance = mean(importance),
mean_count = mean(n_count)) %>%
pivot_wider(names_from = "sample_id",
values_from = c("mean_importance", "mean_count"),
names_sep = "__")
```
--
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]