Kam
10/28/2023, 3:31 PMErik Zaadi
10/29/2023, 11:01 AMdbt build should be added to dbt_invocations and not dropped and recreated.
What version of dbt and dbt-data-reliability package are you using?Kam
10/29/2023, 1:47 PMKam
10/29/2023, 1:50 PMErik Zaadi
10/29/2023, 1:56 PMErik Zaadi
10/29/2023, 2:02 PMKam
10/29/2023, 2:27 PMKam
10/29/2023, 2:54 PMmaterialized = table
when I look at dbt_invocations.sql it shows that it is materialized = 'incremental', that should override my default setting of 'table'
Doesn't seem like it is being override, so when I move the default materialized from models to my project, it fixed the issue.
BEFORE
models:
enabled: true
materialized: table
transient: false
elementary:
+database: "dig_{{env_var('DBT_SNOWFLAKE_ENV')}}_common_db"
+schema: "elementary"
dig_snowflake_disw:
AFTER
models:
elementary:
+database: "dig_{{env_var('DBT_SNOWFLAKE_ENV')}}_common_db"
+schema: "elementary"
dig_snowflake_disw:
enabled: true
materialized: table
transient: false
dbt_invocations.sql
{{
config(
materialized = 'incremental',
transient=False,
unique_key = 'invocation_id',
on_schema_change = 'append_new_columns',
full_refresh=elementary.get_config_var('elementary_full_refresh'),
meta={
"timestamp_column": "created_at",
"prev_timestamp_column": "generated_at",
}
)
}}
{{ elementary.get_dbt_invocations_empty_table_query() }}