Skip to content

Commit

Permalink
store model.to_dict in batch jinja context var of
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Oct 24, 2024
1 parent d07bfda commit e1aa98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/task/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def _execute_microbatch_materialization(
batch[0], model.config.batch_size
),
)
context["model"] = model
context["model"] = model.to_dict()

Check warning on line 535 in core/dbt/task/run.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/run.py#L535

Added line #L535 was not covered by tests
context["sql"] = model.compiled_code
context["compiled_code"] = model.compiled_code

Expand Down

0 comments on commit e1aa98e

Please sign in to comment.