[Continuing to discuss my efforts to setup Achilles under a new topic, because i’m currently tackling a new set of issues]
I am now able to connect to the postgresql database, and interact with it using the database connector.
When I execute:
achillesResults <- achilles (connectionDetails, cdmDatabaseSchema=“public”, resultsDatabaseSchema=“public”, sourceName="", smallcellcount=1, cdmVersion=“5”)
The following results are displayed:
Connecting using PostgreSQL driver
Executing multiple queries. This could take a while
|======================================================================| 100%
Analysis took 1.31 secs
Done. Achilles results can now be found in public
Executing Achilles Heel. This could take a while
|======================================================================| 100%
Analysis took 9.44 secs
Done. Achilles Heel results can now be found in public
Next, I try to execute:
exportToJson(connectionDetails, “public”, “public”, “/Users/snkasthu/Achilles/data/”)
Unfortunately, this gives me:
Generating condition treemap
| | 0%Error executing SQL: Error in rJava::.jcall(s, “Ljava/sql/ResultSet;”, “executeQuery”, as.character(query)[1]): org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = integer
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 1075
As far as I can read, does this mean that there’s an varchar value thats supposed to be an integer in my concept table? I’m especially suspicious of the concept_code (character varying(50))…