dbt-labs/dbt-core · error
apply macro present
Error message
apply macro present
What it means
Test-only assertion in the propagation-macros test: the built-in macro list must contain dbt_classification.apply_snowflake_column_tag. Fires only if that apply macro is renamed or dropped from propagation_macro_templates().
Solutions
- Restore the apply_snowflake_column_tag entry in propagation_macro_templates
- Keep macro names in sync with the classification feature
- Update the test if the macro is intentionally renamed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/dbt-classification-types/src/macros.rs:110 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of dbt-labs/dbt-core@0267ce9170 (2026-09-07).
Data as JSON: /api/errors/9695f8817a531cee.
Report an issue: GitHub.
Appendix: source
Thrown at crates/dbt-classification-types/src/macros.rs:110
}
#[test]
fn fetch_macro_content_references_tag_references_all_columns() {
let templates = propagation_macro_templates();
let (_, sql) = templates
.iter()
.find(|(n, _)| n == "dbt_classification.fetch_snowflake_column_tags")
.expect("fetch macro present");
assert!(sql.contains("TAG_REFERENCES_ALL_COLUMNS"));
}
#[test]
fn apply_macro_content_references_alter_relation_set_tag() {
let templates = propagation_macro_templates();
let (_, sql) = templates
.iter()
.find(|(n, _)| n == "dbt_classification.apply_snowflake_column_tag")
.expect("apply macro present");
assert!(sql.contains("ALTER"));
assert!(sql.contains("SET TAG"));
}
}
View on GitHub (pinned to 0267ce9170)