Skip to content

Fix: handle whitespace trimming in dbt test-to-macro jinja normalization#5232

Merged
georgesittas merged 1 commit intomainfrom
jo/improve_dbt_generic_test_to_macro_conversion
Aug 27, 2025
Merged

Fix: handle whitespace trimming in dbt test-to-macro jinja normalization#5232
georgesittas merged 1 commit intomainfrom
jo/improve_dbt_generic_test_to_macro_conversion

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Aug 27, 2025

We don't handle whitespace trimming in the {% test foo %} -> {% macro test_foo %} conversion today, which results in this error: Encountered unknown tag 'test'. This PR address this. An example of such a test in the wild can be found here.

@georgesittas georgesittas requested a review from a team August 27, 2025 00:36
@georgesittas georgesittas force-pushed the jo/improve_dbt_generic_test_to_macro_conversion branch from 67ef666 to 10ad6e0 Compare August 27, 2025 00:45
@georgesittas georgesittas changed the title Fix: improve dbt generic-test-to-macro jinja normalization Fix: handle whitespace trimming in dbt generic-test-to-macro jinja normalization Aug 27, 2025
@georgesittas georgesittas force-pushed the jo/improve_dbt_generic_test_to_macro_conversion branch from 10ad6e0 to 5c43859 Compare August 27, 2025 00:45
@georgesittas georgesittas changed the title Fix: handle whitespace trimming in dbt generic-test-to-macro jinja normalization Fix: handle whitespace trimming in dbt test-to-macro jinja normalization Aug 27, 2025
@georgesittas georgesittas merged commit a7feeb7 into main Aug 27, 2025
36 checks passed
@georgesittas georgesittas deleted the jo/improve_dbt_generic_test_to_macro_conversion branch August 27, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants