diff --git a/tests/testthat/test-backend-teradata.R b/tests/testthat/test-backend-teradata.R index c1883097e..6595979b9 100644 --- a/tests/testthat/test-backend-teradata.R +++ b/tests/testthat/test-backend-teradata.R @@ -4,8 +4,9 @@ test_that("custom scalar translated correctly", { expect_equal(test_translate_sql(x != y), sql("`x` <> `y`")) expect_equal(test_translate_sql(as.numeric(x)), sql("CAST(`x` AS DECIMAL(12, 9))")) expect_equal(test_translate_sql(as.numeric(x, 8)), sql("CAST(`x` AS DECIMAL(12, 8))")) - expect_equal(test_translate_sql(as.double(x)), sql("CAST(`x` AS NUMERIC)")) - expect_equal(test_translate_sql(as.character(x)), sql("CAST(`x` AS VARCHAR(MAX))")) + expect_equal(test_translate_sql(as.double(x)), sql("CAST(`x` AS FLOAT)")) + expect_equal(test_translate_sql(as.character(x)), sql("CAST(`x` AS VARCHAR(255))")) + expect_equal(test_translate_sql(as.character(x, 12)), sql("CAST(`x` AS VARCHAR(12))")) expect_equal(test_translate_sql(log(x)), sql("LN(`x`)")) expect_equal(test_translate_sql(cot(x)), sql("1 / TAN(`x`)")) expect_equal(test_translate_sql(nchar(x)), sql("CHARACTER_LENGTH(`x`)"))