Skip to content

Commit

Permalink
Exclude previous_batch_results from serialization of model node to …
Browse files Browse the repository at this point in the history
…avoid jinja context bloat
  • Loading branch information
QMalcolm committed Nov 26, 2024
1 parent 593880e commit 4050e37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/dbt/contracts/graph/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None):
dct = super().__post_serialize__(dct, context)
if "_has_this" in dct:
del dct["_has_this"]
if "previous_batch_results" in dct:
del dct["previous_batch_results"]
return dct

@classmethod
Expand Down

0 comments on commit 4050e37

Please sign in to comment.