This backend supports SAP HANA databases, typically accessed via
HDBConnection created by DBI::dbConnect(). Use dialect_hana() with
lazy_frame() to see simulated SQL without connecting to a live database.
Key differences for this backend are:
Temporary tables get
#prefix and useLOCAL TEMPORARY COLUMN.No table analysis performed in
dplyr::copy_to().paste()uses||Note that you can't create new boolean columns from logical expressions; you need to wrap with explicit
ifelse:ifelse(x > y, TRUE, FALSE).
See vignette("translation-function") and vignette("translation-verb") for
details of overall translation technology.
Examples
library(dplyr, warn.conflicts = FALSE)
lf <- lazy_frame(a = TRUE, b = 1, c = 2, d = "z", con = dialect_hana())
lf |> transmute(x = paste0(d, " times"))
#> <SQL>
#> SELECT "d" || ' times' AS "x"
#> FROM "df"
