{"record":{"id":"01ecc1247e5f645a","repo":"dbt-labs/dbt-core","slug":"dbtseed-does-not-support-setting-detected-unsafe","errorCode":null,"errorMessage":"DbtSeed does not support setting detected_unsafe","messagePattern":"DbtSeed does not support setting detected_unsafe","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-schemas/src/schemas/nodes.rs","lineNumber":1869,"sourceCode":"                            \"same_fqn\",\n                            same_fqn_result,\n                            Some((\n                                format!(\"{:?}\", &self.common().fqn),\n                                format!(\"{:?}\", &other_seed.common().fqn),\n                            )),\n                        ),\n                        (\"same_database_representation\", same_db_repr_result, None),\n                    ],\n                );\n            }\n\n            result\n        } else {\n            false\n        }\n    }\n    fn set_detected_introspection(&mut self, _introspection: IntrospectionKind) {\n        panic!(\"DbtSeed does not support setting detected_unsafe\");\n    }\n}\n\nimpl InternalDbtNodeAttributes for DbtSeed {\n    fn search_name(&self) -> String {\n        self.__common_attr__.name.clone()\n    }\n\n    fn selector_string(&self) -> String {\n        self.__common_attr__.fqn.join(\".\")\n    }\n\n    fn serialized_config(&self) -> YmlValue {\n        dbt_yaml::to_value(&self.deprecated_config).expect(\"Failed to serialize to YAML\")\n    }\n}\n\nimpl InternalDbtNode for DbtTest {","sourceCodeStart":1851,"sourceCodeEnd":1887,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-schemas/src/schemas/nodes.rs#L1851-L1887","documentation":"DbtSeed's set_detected_introspection implementation is an intentional hard panic: seeds are plain CSV files and never carry introspection/unsafe metadata, so the trait method is unimplemented. Hitting it means generic node-handling code invoked an introspection setter on a node kind that cannot hold that state.","triggerScenarios":"Thrown at crates/dbt-schemas/src/schemas/nodes.rs:1869 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Match on the concrete node type before calling set_detected_introspection and skip DbtSeed","Move the introspection flag to a wrapper/trait only model-like nodes implement","Return a no-op or Err instead of panicking if the trait contract allows"],"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"}