Our database is BigQuery, when ran Achilles, it failed at SQL 2004.sql, the error massage:
“ Resources exceeded during query execution: Not enough resources for query planning – too many subqueries or query is too complex.”
To solve this problem, I set sqlOnly = TRUE for the following function:
con ← achilles(connectionDetails,
…
sqlOnly = TRUE,
cdmVersion = “5.3.0”)
to generate the full SQL queries. Then modified the 2004.sql (replace one sub-query with a variable) and ran these SQLs directly .
In this case, I have to manually clean up all the tmp tables.
The question is that if any important tables or processes missing without running the function achilles()?
we have some reports missing from Atlas and I’m wondering if it is related to what we did?
Any suggestion how to solve the 2004.sql to run this R function achilles() against BigQuery?
To share some fixes (for BigQuery) to the SQLs under …/RPackages\Achilles\sql\sql_server\analyses
NUMERIC(7,6) → NUMERIC
INTERSECT → INTERSECT DISTINCT
Thanks.
Luo