You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using dbplyr with redshift. The explain function fails with an error but works if I comment out a line in backend-postgres.R.
I construct a dplyr expression named (e.g.) dbquery and then explain(dbquery). The sql translation is printed but the plan is not. I consistently get the following error:
<PLAN>
Error: Failed to prepare query: ERROR:
LINE 1: EXPLAIN (FORMAT text) SELECT *
^
syntax error at or near "FORMAT"
The function backend-postgres.R contains this code
build_sql(
"EXPLAIN ",
(!is.null(format)) sql(paste0("(FORMAT ", format, ") ")),
sql,
con = con
)
If I comment out the line beginning (!is.null, the explain function works.
I apologize for not offering a reprex, but I don't have access to a public redshift database.
The text was updated successfully, but these errors were encountered:
I'm using
dbplyr
with redshift. Theexplain
function fails with an error but works if I comment out a line inbackend-postgres.R
.I construct a
dplyr
expression named (e.g.)dbquery
and thenexplain(dbquery)
. The sql translation is printed but the plan is not. I consistently get the following error:The function
backend-postgres.R
contains this codeIf I comment out the line beginning
(!is.null
, theexplain
function works.I apologize for not offering a reprex, but I don't have access to a public redshift database.
The text was updated successfully, but these errors were encountered: