Open tseto opened 3 years ago
Not a particular reason, but renderTranslateQuerySql
calls SqlRender::render
and SqlRender::translate
internally as well, so they should amount to the same output (see https://github.com/OHDSI/DatabaseConnector/blob/master/R/Sql.R). If it's an error in the query translation, perhaps you need to file a bug report there (https://github.com/OHDSI/SqlRender/issues).
Which query is this? Could you attach errorReportSql.txt
?
Error executing SQL: java.sql.SQLException: [Simba]BigQueryJDBCDriver Error executing query job. Message: Unrecognized name:
<gcp_project>.<dataset>
at [17:8] An error report has been created at /home/ohdsi/workdir/notebooks/errorReportSql.txt Backtrace:DatabaseConnector::renderTranslateExecuteSql doesn't work too well with BigQuery and my BigQueryJDBCDriver. Is there a reason you are using renderTranslateExecuteSql instead of
sql <- SqlRender::loadRenderTranslateSql DatabaseConnector::executeSql(connection, sql)
which is being used throughout the rest of the R code?