Skip to content

Commit

Permalink
Fix other broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Feb 27, 2023
1 parent 4312d7a commit 84aedd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-pkg-duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,13 @@ test_that("duckdb translation for n_distinct works", {
test_that("duckdb translation for round works", {
skip_if_not(has_duckdb_with_substrait())

# DuckDB is ignoring the rounding strategy - need to check if it even can implement
# alternatives? Should we just do this one but warn??
expect_equal(
tibble::tibble(x = c(1, 2.34, 3.456, 4.5)) %>%
duckdb_substrait_compiler() %>%
substrait_project(x, y = round(x)) %>%
dplyr::collect(),
tibble::tibble(
x = c(1, 2.34, 3.456, 4.5),
y = c(1, 2, 3, 5)
)
)
Expand Down

0 comments on commit 84aedd9

Please sign in to comment.