Displaying violations in the logs#
This package provides a macro that can be executed via an on-run-end
hook to display the package results in the logs in addition to storing those in the Data Warehouse.
To use it, you can add the following line in your dbt_project.yml
:
The macro accepts two parameters:
- to pick between 2 types of formatting, set
format='table'
(default) orformat='csv'
- to add quotes to the database and schema (default = no quote), set
quote='`'
orquote='"'
Logging your custom rules#
You can also log the results of your custom rules by applying dbt_project_evaluator.is_empty
to
the custom models.