{"record":{"id":"5954c63486a4fdbf","repo":"dbt-labs/dbt-core","slug":"unsupported-relation-type-in","errorCode":null,"errorMessage":"Unsupported relation type ({}) in {}:{}","messagePattern":"Unsupported relation type \\((.+?)\\) in (.+?):(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/cast_util.rs","lineNumber":36,"sourceCode":"        .ok_or_else(|| {\n            minijinja::Error::new(\n                minijinja::ErrorKind::InvalidOperation,\n                \"relation must be an object\",\n            )\n        })?\n        .get_value(&minijinja::Value::from(THIS_RELATION_KEY))\n    {\n        Ok(relation_object\n            .downcast_object::<RelationObject>()\n            .ok_or_else(|| {\n                minijinja::Error::new(\n                    minijinja::ErrorKind::InvalidOperation,\n                    \"this must be a BaseRelation object\",\n                )\n            })?\n            .inner())\n    } else {\n        Err(minijinja::Error::new(\n            minijinja::ErrorKind::InvalidOperation,\n            format!(\n                \"Unsupported relation type ({}) in {}:{}\",\n                value,\n                file!(),\n                line!()\n            ),\n        ))\n    }\n}\n","sourceCodeStart":18,"sourceCodeEnd":47,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/cast_util.rs#L18-L47","documentation":"The unwrapped RelationObject holds an inner relation of a concrete type this operation does not accept — the downcast to the expected relation implementation failed, and the message names both the offending relation type and the file/line of the call site that rejected it.","triggerScenarios":"Thrown at crates/dbt-adapter/src/cast_util.rs:36 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported relation implementations for this operation","Extend the downcast target (or add a trait method) to accept the named relation type","Validate the relation kind at the adapter entry point before dispatching"],"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"}