
Build the BigQuery demo's cohort and features on DuckDB
Source:R/backend_parity.R
run_duckdb_demo.RdThe cohort comes from compile_circe_to_duckdb() and the features from inst/sql/duckdb_demo_features.sql, which
computes the same columns as the GoogleSQL the demo runs on BigQuery. Both tables are written to the connection's
current schema. Ids are returned as text, so they are exact whatever the connection's bigint setting.
Usage
run_duckdb_demo(
con,
cdm_schema = "main",
cohort_json = NULL,
cohort_id = 1L,
cohort_table = "demo_cohort",
features_table = "demo_features"
)