You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that duckplyr::min_rank() and duckplyr::desc() trigger a fallback to dplyr and would like to understand the reason. Are these functions not yet fully supported by duckplyr? The message tells me that the functions don't exist, but they are part of the duckplyr package.
Notably, duckplyr::arrange(var) works fine (without fallback) while duckplyr::arrange(duckplyr::desc(var)) triggers a fallback.
Any explanation/help is greatly appreciated. Keep up the great work!
options(duckdb.materialize_message=TRUE)
library(duckplyr)
#> The duckplyr package is configured to fall back to dplyr when it encounters an#> incompatibility. Fallback events can be collected and uploaded for analysis to#> guide future development. By default, no data will be collected or uploaded.#> → Run `duckplyr::fallback_sitrep()` to review the current settings.#> ✔ Overwriting dplyr methods with duckplyr methods.#> ℹ Turn off with `duckplyr::methods_restore()`.#> #> Attache Paket: 'duckplyr'#> Die folgenden Objekte sind maskiert von 'package:stats':#> #> filter, lag#> Die folgenden Objekte sind maskiert von 'package:base':#> #> intersect, setdiff, setequal, union
row.names(mtcars) <-NULLmtcars_rank<-mtcars|>duckplyr::as_duckplyr_df() |>duckplyr::mutate(Rank=duckplyr::min_rank(mpg))
#> The duckplyr package is configured to fall back to dplyr when it encounters an#> incompatibility. Fallback events can be collected and uploaded for analysis to#> guide future development. By default, no data will be collected or uploaded.#> ℹ A fallback situation just occurred. The following information would have been#> recorded:#> {"version":"0.4.1","message":"{\"exception_type\":\"Catalog\",\"exception_message\":\"Scalar#> Function with name min_rank does not exist!\\nDid you mean#> \\\"isnan\\\"?\",\"type\":\"Scalar#> Function\",\"name\":\"min_rank\",\"candidates\":\"isnan\",\"error_subtype\":\"MISSING_ENTRY\"}","name":"mutate","x":{"...1":"numeric","...2":"numeric","...3":"numeric","...4":"numeric","...5":"numeric","...6":"numeric","...7":"numeric","...8":"numeric","...9":"numeric","...10":"numeric","...11":"numeric"},"args":{"dots":{"...12":"...13::...14(...1)"},".by":"NULL",".keep":["all","used","unused","none"]}}#> → Run `duckplyr::fallback_sitrep()` to review the current settings.#> → Run `Sys.setenv(DUCKPLYR_FALLBACK_COLLECT = 1)` to enable fallback logging,#> and `Sys.setenv(DUCKPLYR_FALLBACK_VERBOSE = TRUE)` in addition to enable#> printing of fallback situations to the console.#> → Run `duckplyr::fallback_review()` to review the available reports, and#> `duckplyr::fallback_upload()` to upload them.#> ℹ See `?duckplyr::fallback()` for details.#> ℹ This message will be displayed once every eight hours.#> Error processing with relational.#> Caused by error:#> ! {"exception_type":"Catalog","exception_message":"Scalar Function with name min_rank does not exist!\nDid you mean \"isnan\"?","type":"Scalar Function","name":"min_rank","candidates":"isnan","error_subtype":"MISSING_ENTRY"}mtcars_sorted_desc<-mtcars|>duckplyr::as_duckplyr_df() |>duckplyr::arrange(duckplyr::desc(mpg))
#> Error processing with relational.#> Caused by error:#> ! {"exception_type":"Catalog","exception_message":"Scalar Function with name desc does not exist!\nDid you mean \"decade\"?","type":"Scalar Function","name":"desc","candidates":"decade","error_subtype":"MISSING_ENTRY"}mtcars_sorted<-mtcars|>duckplyr::as_duckplyr_df() |>duckplyr::arrange(mpg)
Hi,
I noticed that
duckplyr::min_rank()
andduckplyr::desc()
trigger a fallback todplyr
and would like to understand the reason. Are these functions not yet fully supported byduckplyr
? The message tells me that the functions don't exist, but they are part of theduckplyr
package.Notably,
duckplyr::arrange(var)
works fine (without fallback) whileduckplyr::arrange(duckplyr::desc(var))
triggers a fallback.Any explanation/help is greatly appreciated. Keep up the great work!
Created on 2024-07-22 with reprex v2.1.1
Session info
The text was updated successfully, but these errors were encountered: