Closed eminty closed 2 years ago
@eminty - does your Vocab sit in the same schema as your CDM?
To circle back on this before closure - the vocab does sit in the same schema.
It appears that the issue stems from the getTableNames() method when applied to the cdm schema. Updating to the most recent version (1.2.21.1025 as of time of writing) of the simba JDBC driver did not fix it.
From conversation with @schuemie , this was not seen on the test BQ instance they have access to. It seems likely that it relates to a security / permission setting of the Stanford BQ repository in its interaction with the driver.
As a temporary work around, a branch of CohortDiagnostics was established that comments out the exportConceptInformation() call by @msuchard .
Will explore some internal solutions to this. Thanks for your help.
exportConceptInformation() is defined in CohortDiagnostics/ConceptIds.R
It uses DatabaseConnector::getTableNames(connection, schema) to retrieve the table names. These are then compared to a defined set of candidate vocabulary table names to find and subsequently query those vocabulary tables.
In exploring this, getTableNames(connection, cdmDatabaseSchema) returns character(0), (it doesn't matter if I add or remove backtics in the schema name, which I've noted has been an issue in the past). The cdmDatabaseSchema definition has been sufficient to execute the study thus far.
I can return the list of tables in the cohortDatabaseSchema using getTableNames() and the same connection however.