Closed Minitour closed 2 years ago
I added the column manually and then I got the following error
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [DELETE FROM ohdsi.cohort_cache WHERE design_hash = 879059627; DELETE FROM ohdsi.cohort_inclusion_result_cache WHERE design_hash = 879059627; DELETE FROM ohdsi.cohort_inclusion_stats_cache WHERE design_hash = 879059627; DELETE FROM ohdsi.cohort_summary_stats_cache WHERE design_hash = 879059627; DELETE FROM ohdsi.cohort_censor_stats_cache WHERE design_hash = 879059627]; nested exception is org.postgresql.util.PSQLException: ERROR: relation "ohdsi.cohort_cache" does not exist
Position: 13
It looks like you have some issues with Results schema. Please review documentation https://github.com/OHDSI/WebAPI/wiki/CDM-Configuration#schema-setup
@konstjar Thanks, this actually solved the issue. For some reason the tables were already there but with missing columns.
The solution was to generate the DDL and recreate the tables.
Expected behavior
Success
Actual behavior
It is trying to write something into a column that doesn't exist.
Steps to reproduce behavior
My docker compose file. vocab-loader is a custom image I wrote to download the vocabulary from athena and load it.
Simply load the vocabulary table (any other way) and try to create a cohort definition. The creation itself works but when I try to run it fails.