OHDSI / Achilles

Automated Characterization of Health Information at Large-scale Longitudinal Evidence Systems (ACHILLES) - descriptive statistics about a OMOP CDM database
https://ohdsi.github.io/Achilles/
130 stars 121 forks source link

Minor bug running inst/sql/sql_server/analyses/2004.sql #771

Open CyloNox opened 2 months ago

CyloNox commented 2 months ago

Running 2004.sql on a sql server hit a max amount of characters for a CTE. All that I did was split it out into two CTEs and do the insert at the bottom with both. Here is the analysis file with the line where I made a second CTE: https://github.com/JH-TIC/Achilles/blob/main/inst/sql/sql_server/analyses/2004.sql#L674

It's a simple fix but would be nice to include this on the next release so I don't have to slightly modify the code.

festerman commented 2 months ago

Same as #720 , #679