Problem
I’m trying to create a new materialization macro dbt docs - Creating new materializations.
From within the macro I want to check if I’m on a full_refresh or not.
I thought I could just model['config'].get('full_refresh')
but it does seem to work when full_refresh
is set via dbt run --full-refresh
.
If I get explicity full_refresh
on the model config with
{{
config(
materialized="my_materialization",
full_refresh=true,
)
then model['config'].get('full_refresh')
works.
So how do I know for sure if I’m on a full-refresh or not?