model
model
is the dbt graph object (or node) for the current model. It can be used to:
- Access
config
settings, say, in a post-hook - Access the path to the model
For example:
{% if model.config.materialization = 'view' %}
{{ log(model.name ~ " is a view.", info=True) }}
{% endif %}
To view the contents of model
for a given model, use log()
to print the full contents:
{{ log(model, info=True) }}
0