You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/integrations/prefect-dbt/prefect_dbt/core/AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ Non-obvious behaviors:
58
58
59
59
## Pitfalls
60
60
61
+
-`UnitTestDefinition` (dbt-core 1.8+) lacks `config.materialized` and `relation_name`. When adding any attribute access on a manifest node, guard with `isinstance(node, ManifestNode)` for attributes that don't exist on `UnitTestDefinition`. Unit test nodes come from `manifest.unit_tests`, not `manifest.nodes`.
61
62
-`_initialize_dbt_hooks()` must be called in `__init__`; both runner and orchestrator already do this. If you subclass either without calling `super().__init__()`, `_dbt_hooks` will be absent and `_has_dbt_hooks()` will raise `AttributeError`.
62
63
- The selection cache is built once before execution begins; hook selectors that reference nodes not in the resolved manifest will match nothing silently.
63
64
-`post_model` hooks in `PrefectDbtRunner` run in the background callback thread, not the main thread. Avoid thread-unsafe side effects.
0 commit comments