Skip to content
Advertisement

macros are not recognised in dbt

JavaScript

This is my model in DBT which is configured with pre and post hooks which referance a macro to insert and update the audit table.

my macro

JavaScript

this is the first time i’m using this macro and I see the following error.

JavaScript

Advertisement

Answer

Your macro’s definition has too much whitespace in the braces that define the jinja block:

JavaScript

Needs to be

JavaScript

And then this should work just fine.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement