Skip to content

Fix: make jinja-based model rendering more lenient#5300

Merged
georgesittas merged 1 commit intomainfrom
jo/more_lenient_jinja_rendering
Sep 4, 2025
Merged

Fix: make jinja-based model rendering more lenient#5300
georgesittas merged 1 commit intomainfrom
jo/more_lenient_jinja_rendering

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Sep 4, 2025

Today, if rendering a Jinja-based model produces an empty SQL string, it results in a ConfigError downstream, e.g., when we try to update the model schemas.

This PR changes this behavior so that we treat such empty SQL strings similar to ParsetimeAdapterCallError, thus returning None in the render call, signalling that the model can only be rendered at runtime.

@georgesittas georgesittas merged commit 442c4a6 into main Sep 4, 2025
36 checks passed
@georgesittas georgesittas deleted the jo/more_lenient_jinja_rendering branch September 4, 2025 16:56
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