Skip to content

Commit

Permalink
Fix core-interface templater dbt 1.8 globals requirement (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAntonellini committed Jul 22, 2024
1 parent cc7817c commit 7a76d0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbt_core_interface/dbt_templater/templater.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def from_string(*args, **kwargs):
def render_func(in_str):
env.add_extension(SnapshotExtension)
template = env.from_string(in_str, globals=globals)
if DBT_VERSION_TUPLE >= (1,8):
return template.render(globals)
return template.render()

local.render_func = render_func
Expand Down

0 comments on commit 7a76d0d

Please sign in to comment.