Skip to content

test: Snapshot updates for rcc-smoke (null) #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 3 additions & 42 deletions tests/testthat/_snaps/fallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
Message
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, data will be collected but no data will be uploaded.
x Fallback printing is disabled.
v Fallback logging is enabled.
i Fallback logging is not controlled, see `?duckplyr::fallback()`.
i Logs are written to 'fallback/log/dir'.
x Fallback logging is disabled.
i Automatic fallback uploading is not controlled and therefore disabled, see `?duckplyr::fallback()`.
i No reports ready for upload.
i See `?duckplyr::fallback_config()` for details.

# fallback_sitrep() enabled
Expand All @@ -19,11 +16,8 @@
Message
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, data will be collected but no data will be uploaded.
x Fallback printing is disabled.
v Fallback logging is enabled.
i Logs are written to 'fallback/log/dir'.
x Fallback logging is disabled.
v Automatic fallback uploading is enabled.
v Number of reports ready for upload: 3.
> Review with `duckplyr::fallback_review()`, upload with `duckplyr::fallback_upload()`.
i See `?duckplyr::fallback_config()` for details.

# fallback_sitrep() enabled silent
Expand All @@ -33,11 +27,8 @@
Message
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, data will be collected but no data will be uploaded.
v Fallback printing is enabled.
v Fallback logging is enabled.
i Logs are written to 'fallback/log/dir'.
x Fallback logging is disabled.
v Automatic fallback uploading is enabled.
v Number of reports ready for upload: 3.
> Review with `duckplyr::fallback_review()`, upload with `duckplyr::fallback_upload()`.
i See `?duckplyr::fallback_config()` for details.

# fallback_sitrep() disabled
Expand All @@ -55,9 +46,6 @@

Code
duckdb_tibble(a = 1, b = 2, c = 3) %>% summarize(.by = a, e = sum(b), f = sum(e))
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"Can't reuse summary variable `...4`.","name":"summarise","x":{"...1":"numeric","...2":"numeric","...3":"numeric"},"args":{"dots":{"...4":"sum(...2)","...5":"sum(...4)"},"by":["...1"]}}
Output
# A duckplyr data frame: 3 variables
a e f
Expand All @@ -69,15 +57,8 @@
Code
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = lubridate::wday(a,
label = TRUE))
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"wday(label = ) not supported","name":"mutate","x":{"...1":"Date"},"args":{"dots":{"...2":"...3::...4(...1, label = TRUE)"},".by":"NULL",".keep":["all","used","unused","none"]}}
Output
# A duckplyr data frame: 2 variables
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"Can't convert columns of class <ordered/factor> to relational. Affected column: `...2`.","name":"head","x":{"...1":"Date","...2":"ordered/factor"},"args":{"n":21}}
Output
a b
<date> <ord>
1 2024-03-08 Fri
Expand All @@ -86,9 +67,6 @@

Code
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = lubridate::wday(a))
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"`wday()` with `option(\"lubridate.week.start\")` not supported","name":"mutate","x":{"...1":"Date"},"args":{"dots":{"...2":"...3::...4(...1)"},".by":"NULL",".keep":["all","used","unused","none"]}}
Output
# A duckplyr data frame: 2 variables
a b
Expand All @@ -100,9 +78,6 @@
Code
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = strftime(a, format = "%Y-%m-%d",
tz = "CET"))
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"strftime(tz = ) not supported","name":"mutate","x":{"...1":"Date"},"args":{"dots":{"...2":"strftime(...1, format = \"<character>\", tz = \"<character>\")"},".by":"NULL",".keep":["all","used","unused","none"]}}
Output
# A duckplyr data frame: 2 variables
a b
Expand All @@ -113,9 +88,6 @@

Code
duckdb_tibble(a = 1, b = 2) %>% mutate(c = .env$x)
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"object not found, should also be triggered by the dplyr fallback","name":"mutate","x":{"...1":"numeric","...2":"numeric"},"args":{"dots":{"...3":"...4$...5"},".by":"NULL",".keep":["all","used","unused","none"]}}
Condition
Error in `mutate()`:
i In argument: `c = .env$x`.
Expand All @@ -126,9 +98,6 @@

Code
duckdb_tibble(a = 1, b = 2) %>% mutate(c = foo(a, b))
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"Can't translate function `foo()`.","name":"mutate","x":{"...1":"numeric","...2":"numeric"},"args":{"dots":{"...3":"foo(...1, ...2)"},".by":"NULL",".keep":["all","used","unused","none"]}}
Output
# A duckplyr data frame: 3 variables
a b c
Expand Down Expand Up @@ -174,9 +143,6 @@

Code
duckdb_tibble(`___row_number` = 1, b = 2:3) %>% arrange(b)
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"Can't use column `...1` already present in rel for order preservation","name":"arrange","x":{"...1":"numeric","...2":"integer"},"args":{"dots":["...2"],".by_group":false}}
Output
# A duckplyr data frame: 2 variables
`___row_number` b
Expand All @@ -188,11 +154,6 @@

Code
duckdb_tibble(a = 1) %>% count(a, .drop = FALSE, name = "n")
Message
i dplyr fallback recorded
{"version":"0.3.1","message":"{.code count()} only implemented for {.arg .drop} = {.value TRUE}","name":"count","x":{"...1":"numeric"},"args":{"dots":{"1":"...1"},"wt":"NULL","sort":false,".drop":false}}
i dplyr fallback recorded
{"version":"0.3.1","message":"Try {.code summarise(.by = ...)} or {.code mutate(.by = ...)} instead of {.code group_by()} and {.code ungroup()}."}
Output
# A duckplyr data frame: 2 variables
a n
Expand Down