The error message contained in the code block below contradicts the actual logic within the if statement.
{% if prod_database is none and prod_database_replace is none %}
{% set error_msg -%}
upstream_prod has been provided with two incompatible variables. Only one of the following should be set:
- upstream_prod_database
- upstream_prod_database_replace
{%- endset %}
{% do exceptions.raise_compiler_error(error_msg) %}
{% endif %}
Based on the error message, it should be testing that both variables for is **not** none.
I was having some problems using this with the dbt-clickhouse adapter and overriding the macro with another version containingis not none in the if statement allowed me to compile.
Version: 0.8.0
The error message contained in the code block below contradicts the actual logic within the
if
statement.Based on the error message, it should be testing that both variables for
is **not** none.
I was having some problems using this with the
dbt-clickhouse
adapter and overriding the macro with another version containingis not none
in the if statement allowed me to compile.