"UPDATE main.concept SET domain_id = 'Regimen' WHERE concept_id = 19129655"

Expected `{ ... }` to run without any errors.
i Actually got a <simpleError> with text:
  invalid non-character version specification 'x' (type: double)

Expected `... <- NULL` to run without any errors.
i Actually got a <simpleError> with text:
  invalid non-character version specification 'x' (type: double)

test_record_cohort_attrition <- function(con, cdm_schema, write_schema) {
con = con, cdm_name = "test", cdm_schema = cdm_schema,
conceptSet = list(pharyngitis = 4112343, bronchitis = 260139),
expect_no_error(cdm$new_cohort <- recordCohortAttrition(cdm$new_cohort, reason = "a reason"))
# running again will produce an error if no new reason is given
compute(temporary = FALSE, name = "new_cohort", overwrite = TRUE)
cohort_definition_id != 1 | cohort_start_date <= as.Date("2015-01-01")
cdm$new_cohort %>% cohortCount() %>% dplyr::filter(cohort_definition_id == 2),
oldCounts %>% dplyr::filter(cohort_definition_id == 2)
dplyr::filter(reason == "After 2019-01-01") %>%
dplyr::filter(reason == "zero count") %>%

test_that("memory leak does not happen", {
# in the memory leak we had an issue where subsequent cohort tables
# This was strange error. Also can use pryr::object_size() and waldo::compare() to investigate
cdm2 <- cdmSubsetCohort(cdm = cdm, cohortTable = "asthma_5")