From e1aa98ef0a369bd1f61f5d9ec4b8d4e648f4fdc3 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 24 Oct 2024 19:35:03 -0400 Subject: [PATCH] store model.to_dict in batch jinja context var of --- core/dbt/task/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/task/run.py b/core/dbt/task/run.py index 7a321e69d30..416a3daf854 100644 --- a/core/dbt/task/run.py +++ b/core/dbt/task/run.py @@ -532,7 +532,7 @@ def _execute_microbatch_materialization( batch[0], model.config.batch_size ), ) - context["model"] = model + context["model"] = model.to_dict() context["sql"] = model.compiled_code context["compiled_code"] = model.compiled_code