Skip to contents

The BigQuery demo (run_bigquery_demo()) builds a cohort and features in GoogleSQL. These functions run the same steps on DuckDB and compare the answers, as the Python module omop_etl.backend_parity does with the same rules:

Ids are compared as exact decimal text. A 64-bit id read into a double is exact only up to 2^53 and one read into an R integer only up to 2^31 - 1, so ids are kept as integer64 or text, and a double id at or above 2^53 is refused rather than compared.