{"record":{"id":"483a1f026874e032","repo":"dbt-labs/dbt-core","slug":"get-relations-without-caching","errorCode":null,"errorMessage":"get_relations_without_caching","messagePattern":"get_relations_without_caching","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/adapter/adapter_impl.rs","lineNumber":4743,"sourceCode":"                let model_col = model_columns_lower.get(&col.name().to_lowercase()).copied();\n                let not_null = not_nulls_lower.contains(&col.name().to_lowercase());\n                col.enrich_for_create(model_col, not_null)\n            })\n            .collect();\n\n        Ok(Value::from(vec![\n            Value::from_iter(enriched_columns.into_iter().map(Value::from_object)),\n            Value::from_iter(typed_constraints.into_iter().map(Value::from_object)),\n        ]))\n    }\n\n    /// DatabricksAdapter https://github.com/databricks/dbt-databricks/blob/2f11abb306a400cde32b27891b766bf41a11fb1f/dbt/adapters/databricks/impl.py#L463\n    pub fn get_relations_without_caching(\n        &self,\n        _state: &State,\n        _relation: &Arc<dyn BaseRelation>,\n    ) -> Result<Value, minijinja::Error> {\n        unimplemented!(\"get_relations_without_caching\")\n    }\n\n    /// PostgresAdapter https://github.com/dbt-labs/dbt-adapters/blob/0efd8d3d1081e1ab43e38797d5104f7b424a6284/dbt-postgres/src/dbt/adapters/postgres/impl.py#L128\n    pub fn parse_index(\n        &self,\n        _state: &State,\n        _raw_index: &Value,\n    ) -> Result<Value, minijinja::Error> {\n        unimplemented!(\"parse_index\")\n    }\n\n    /// DatabricksAdapter https://github.com/databricks/dbt-databricks/blob/2f11abb306a400cde32b27891b766bf41a11fb1f/dbt/adapters/databricks/impl.py#L990\n    pub fn get_column_tags_from_model(\n        &self,\n        model: &dyn InternalDbtNodeAttributes,\n    ) -> AdapterResult<Value> {\n        use crate::relation::databricks::config::components::ColumnTagsLoader;\n","sourceCodeStart":4725,"sourceCodeEnd":4761,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/adapter/adapter_impl.rs#L4725-L4761","documentation":"get_relations_without_caching is a stub: the entire method body is unimplemented!(\"get_relations_without_caching\"), so every call panics regardless of adapter type. It mirrors DatabricksAdapter.impl.py#L463 but was never implemented in this Rust adapter; unlike the adapter-guarded methods there is no working branch at all.","triggerScenarios":"Any invocation of adapter.get_relations_without_caching(state, relation) — from a Jinja macro, a materialization that fetches relations bypassing the cache, or Rust code — always panics because the stub is unconditional.","commonSituations":"A dbt-databricks macro or materialization that relies on uncached relation lookup is executed; porting Python dbt macros that call get_relations_without_caching directly; no version of this adapter currently supports the call.","solutions":["Use list_relations (via the relation cache) instead of get_relations_without_caching","Guard the macro so this method is never invoked, or replace it with adapter.get_relation/list_relations equivalents","If you truly need it, implement the stub in crates/dbt-adapter to return the uncached relation list for your adapter"],"exampleFix":"// before\nlet relations = adapter.get_relations_without_caching(state, relation)?;\n\n// after\nlet relations = adapter.list_relations(query_ctx, conn, db_schema, token)?;","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"// The stub panics unconditionally; never call it — use the cached path instead:\nlet relations = adapter.list_relations(query_ctx, conn, db_schema, token)?;","preventionTips":["Treat get_relations_without_caching as unavailable in this Rust adapter","Use list_relations / relation-cache APIs for relation discovery","Search the codebase for calls to this stub before upgrading macros from Python dbt"],"tags":["adapter","stub","unimplemented","relations"],"backgroundTag":"method-not-implemented","analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}