tidyverse / duckplyr

A drop-in replacement for dplyr, powered by DuckDB for performance.
https://duckplyr.tidyverse.org/
Other
271 stars 17 forks source link

how to understand how duckplyr was built? #24

Open maelle opened 1 year ago

maelle commented 1 year ago

Here is what I (think I) understand and don't understand. There'd be value in writing it up in a contributing guide for fixing current problems, onboarding collaborators, maybe even inspiring people with similar goals (as a side effect, not a priority).

maelle commented 1 year ago

Related: #25

krlmlr commented 1 year ago

Does 99-sync.R work for you?

maelle commented 1 year ago

Taking notes for a contributing guide.

maelle commented 1 year ago

Then got the error

Error in `mutate()`:
ℹ In argument: `test_code = pmap_chr(list(name, code, oo),
  get_test_code, .progress = TRUE)`.
Caused by error in `pmap_chr()`:
ℹ In index: 29.
Caused by error in `rel_try()` at duckplyr/R/rename_with.R:6:2:
! Fallback requested with DUCKPLYR_FORCE
Backtrace:
  1. base::source("~/Documents/cynkra/duckplyr/tools/99-sync.R", echo = TRUE)
 29. duckplyr:::rename_with.duckplyr_df(., identity)
 30. duckplyr:::rel_try(...)
       at duckplyr/R/rename_with.R:6:2
maelle commented 1 year ago

pointers would also be welcome here. :sweat_smile:

maelle commented 1 year ago

actually I'll retry after re-starting, in case the environment variable was set from the previous try. in that case it might make sense to use withr. :thinking:

maelle commented 1 year ago

I still get the error

ℹ No relational implementation for rename_with()
Error in `mutate()`:
ℹ In argument: `test_code = pmap_chr(list(name, code, oo),
  get_test_code, .progress = TRUE)`.
Caused by error in `pmap_chr()`:
ℹ In index: 29.
Caused by error in `rel_try()` at duckplyr/R/rename_with.R:6:2:
! Fallback requested with DUCKPLYR_FORCE
Backtrace:
  1. base::source("~/Documents/cynkra/duckplyr/tools/99-sync.R", echo = TRUE)
 29. duckplyr:::rename_with.duckplyr_df(., identity)
 30. duckplyr:::rel_try(...)
       at duckplyr/R/rename_with.R:6:2
Warning message:
There were 3 warnings in `mutate()`.
The first warning was:
ℹ In argument: `decl_chr = func_decl(fun, code)`.
ℹ In row 1.
Caused by warning in `normalizePath()`:
! path[1]="": No such file or directory
ℹ Run dplyr::last_dplyr_warnings() to see the 2 remaining warnings.