Commit e4a4826
fix: copy dbt-origin dicts before mutation to fix fusion preview.134+ regression (#959)
* fix: copy dbt-origin dicts before mutation to fix fusion preview.134+ regression
Hypothesis: dbt-fusion preview.134+ changed internal dict/map types to be
immutable. Dicts originating from dbt internals (kwargs, model objects,
graph nodes) no longer support .update(). Locally-created dicts are fine.
Fix: wrap dbt-origin dicts with dict() to create mutable copies before
calling .update() on them:
- store_anomaly_test_results.sql: test_params from test_metadata.kwargs
- python.sql: test_node from context.model, test_node.config
- generate_json_schema_test.sql: node from get_node_by_name(), node.config
CI pinned to preview.143 (known-broken) to validate the hypothesis.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* ci: remove fusion version pin — hypothesis confirmed
Fusion snowflake CI passed with preview.143 + dict() copies, confirming
that dbt-origin dicts just need to be copied before mutation. Remove the
version pin to use latest fusion.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Itamar Hartstein <haritamar@gmail.com>1 parent f950ea8 commit e4a4826
4 files changed
Lines changed: 11 additions & 8 deletions
File tree
- .github/workflows
- macros
- commands
- edr
- data_monitoring/anomaly_detection
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments