Skip to content

Commit b88b5b3

Browse files
krlmlrgithub-actions[bot]
authored andcommitted
[create-pull-request] automated change
1 parent 121d323 commit b88b5b3

File tree

1 file changed

+3
-42
lines changed

1 file changed

+3
-42
lines changed

tests/testthat/_snaps/fallback.md

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
Message
66
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.
77
x Fallback printing is disabled.
8-
v Fallback logging is enabled.
9-
i Fallback logging is not controlled, see `?duckplyr::fallback()`.
10-
i Logs are written to 'fallback/log/dir'.
8+
x Fallback logging is disabled.
119
i Automatic fallback uploading is not controlled and therefore disabled, see `?duckplyr::fallback()`.
12-
i No reports ready for upload.
1310
i See `?duckplyr::fallback_config()` for details.
1411

1512
# fallback_sitrep() enabled
@@ -19,11 +16,8 @@
1916
Message
2017
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.
2118
x Fallback printing is disabled.
22-
v Fallback logging is enabled.
23-
i Logs are written to 'fallback/log/dir'.
19+
x Fallback logging is disabled.
2420
v Automatic fallback uploading is enabled.
25-
v Number of reports ready for upload: 3.
26-
> Review with `duckplyr::fallback_review()`, upload with `duckplyr::fallback_upload()`.
2721
i See `?duckplyr::fallback_config()` for details.
2822

2923
# fallback_sitrep() enabled silent
@@ -33,11 +27,8 @@
3327
Message
3428
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.
3529
v Fallback printing is enabled.
36-
v Fallback logging is enabled.
37-
i Logs are written to 'fallback/log/dir'.
30+
x Fallback logging is disabled.
3831
v Automatic fallback uploading is enabled.
39-
v Number of reports ready for upload: 3.
40-
> Review with `duckplyr::fallback_review()`, upload with `duckplyr::fallback_upload()`.
4132
i See `?duckplyr::fallback_config()` for details.
4233

4334
# fallback_sitrep() disabled
@@ -55,9 +46,6 @@
5546

5647
Code
5748
duckdb_tibble(a = 1, b = 2, c = 3) %>% summarize(.by = a, e = sum(b), f = sum(e))
58-
Message
59-
i dplyr fallback recorded
60-
{"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"]}}
6149
Output
6250
# A duckplyr data frame: 3 variables
6351
a e f
@@ -69,15 +57,8 @@
6957
Code
7058
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = lubridate::wday(a,
7159
label = TRUE))
72-
Message
73-
i dplyr fallback recorded
74-
{"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"]}}
7560
Output
7661
# A duckplyr data frame: 2 variables
77-
Message
78-
i dplyr fallback recorded
79-
{"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}}
80-
Output
8162
a b
8263
<date> <ord>
8364
1 2024-03-08 Fri
@@ -86,9 +67,6 @@
8667

8768
Code
8869
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = lubridate::wday(a))
89-
Message
90-
i dplyr fallback recorded
91-
{"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"]}}
9270
Output
9371
# A duckplyr data frame: 2 variables
9472
a b
@@ -100,9 +78,6 @@
10078
Code
10179
duckdb_tibble(a = as.Date("2024-03-08")) %>% mutate(b = strftime(a, format = "%Y-%m-%d",
10280
tz = "CET"))
103-
Message
104-
i dplyr fallback recorded
105-
{"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"]}}
10681
Output
10782
# A duckplyr data frame: 2 variables
10883
a b
@@ -113,9 +88,6 @@
11388

11489
Code
11590
duckdb_tibble(a = 1, b = 2) %>% mutate(c = .env$x)
116-
Message
117-
i dplyr fallback recorded
118-
{"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"]}}
11991
Condition
12092
Error in `mutate()`:
12193
i In argument: `c = .env$x`.
@@ -126,9 +98,6 @@
12698

12799
Code
128100
duckdb_tibble(a = 1, b = 2) %>% mutate(c = foo(a, b))
129-
Message
130-
i dplyr fallback recorded
131-
{"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"]}}
132101
Output
133102
# A duckplyr data frame: 3 variables
134103
a b c
@@ -174,9 +143,6 @@
174143

175144
Code
176145
duckdb_tibble(`___row_number` = 1, b = 2:3) %>% arrange(b)
177-
Message
178-
i dplyr fallback recorded
179-
{"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}}
180146
Output
181147
# A duckplyr data frame: 2 variables
182148
`___row_number` b
@@ -188,11 +154,6 @@
188154

189155
Code
190156
duckdb_tibble(a = 1) %>% count(a, .drop = FALSE, name = "n")
191-
Message
192-
i dplyr fallback recorded
193-
{"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}}
194-
i dplyr fallback recorded
195-
{"version":"0.3.1","message":"Try {.code summarise(.by = ...)} or {.code mutate(.by = ...)} instead of {.code group_by()} and {.code ungroup()}."}
196157
Output
197158
# A duckplyr data frame: 2 variables
198159
a n

0 commit comments

Comments
 (0)