{"record":{"id":"7a6980300f685979","repo":"dbt-labs/dbt-core","slug":"dbtsource-does-not-support-setting-detected-unsafe","errorCode":null,"errorMessage":"DbtSource does not support setting detected_unsafe","messagePattern":"DbtSource does not support setting detected_unsafe","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-schemas/src/schemas/nodes.rs","lineNumber":2513,"sourceCode":"                                ),\n                                format!(\n                                    \"{:?} / loaded_at_field={:?}\",\n                                    &other_source.__source_attr__.freshness,\n                                    &other_source.__source_attr__.loaded_at_field\n                                ),\n                            )),\n                        ),\n                    ],\n                );\n            }\n\n            result\n        } else {\n            false\n        }\n    }\n    fn set_detected_introspection(&mut self, _introspection: IntrospectionKind) {\n        panic!(\"DbtSource does not support setting detected_unsafe\");\n    }\n}\n\nimpl InternalDbtNodeAttributes for DbtSource {\n    fn search_name(&self) -> String {\n        format!(\n            \"{}.{}\",\n            self.__source_attr__.source_name, self.__common_attr__.name\n        )\n    }\n\n    fn selector_string(&self) -> String {\n        format!(\n            \"source:{}.{}.{}\",\n            self.__common_attr__.package_name,\n            self.__source_attr__.source_name,\n            self.__common_attr__.name\n        )","sourceCodeStart":2495,"sourceCodeEnd":2531,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-schemas/src/schemas/nodes.rs#L2495-L2531","documentation":"DbtSource's set_detected_introspection is an intentional hard panic: sources are external tables defined in YAML; there is no compiled/introspectable state to mark as detected-unsafe, so the trait method is unimplemented for this node kind.","triggerScenarios":"Thrown at crates/dbt-schemas/src/schemas/nodes.rs:2513 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Filter to model-like nodes before invoking the introspection setter","Restrict the call site to node kinds that actually compile against the warehouse","Return a benign no-op for sources if the API must stay uniform"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}