Closed OssiLehtinen closed 4 years ago
Currently on holiday, will look into this when I am back :)
Have a good one!
The problem with concat
for paste, is that is doesn't offer a different value for sep
. For paste0
this would work perfectly :D
Should be able to support paste with option to change sep
the helper function:
athena_paste <- function(..., sep = " ", con) {
escape <- pkg_method("escape", "dbplyr")
sql <- pkg_method("sql", "dplyr")
sep <- paste0('||', sep, '||')
pieces <- vapply(list(...), escape, con = con,collapse = sep, character(1))
sql(paste(pieces))
}
PR #66 seems to be fixed paste issue with athena
Issue Description
Doing something like
fails with an error about a missing fucntion (concat_ws).
I think we need to add paste (and paste0) to sql_translate_env's athtena specific translations.
Adding lines:
to sql_translator under sql_translate_env.AthenaConnection should do the trick.