Errors on a placeholder with no matching param. Silently leaving {{threshold}}
in the query would produce a DuckDB parse error far from its cause, and worse, a
missing threshold could otherwise render as an empty string and quietly change
the rule's meaning rather than failing.
Arguments
- sql
rule SQL text
- params
named list, e.g. from
qc_parse_params()
Examples
qc_render_sql("SELECT * FROM obs WHERE v > {{threshold}}", list(threshold = "3"))
#> [1] "SELECT * FROM obs WHERE v > 3"