[Bug] Unit Test fails when macro is used with jinja filter #10410
Labels
bug
Something isn't working
triage
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
When calling calling a macro passed to a jinja filter, the unit tests will fail, while the model can be compiled and run correctly.
Removing the jinja filter fixes the issue.
Creating a new macro to apply the jinja filter also works.
Expected Behavior
Using a macro with a jinja filter would not cause the unit test to fail.
Steps To Reproduce
my_macro.sql
my_model.sql
unit_test.sql
Error message:
Relevant log output
No response
Environment
No response
Which database adapter are you using with dbt?
No response
Additional Context
Work around:
Wrap the jinja filter in another macro.
indent.sql
Then update my_model.sql
The text was updated successfully, but these errors were encountered: