{"record":{"id":"2588676ae3085e46","repo":"dbt-labs/dbt-core","slug":"athena-258867","errorCode":null,"errorMessage":"Athena","messagePattern":"Athena","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/column/column_builder.rs","lineNumber":37,"sourceCode":"    pub fn new(adapter_type: AdapterType) -> Self {\n        Self { adapter_type }\n    }\n\n    pub fn build(&self, field: &FieldRef, type_ops: &dyn TypeOps) -> AdapterResult<Column> {\n        use AdapterType::*;\n        match self.adapter_type {\n            Snowflake => Ok(Self::build_snowflake(field, type_ops)),\n            Bigquery => Ok(Self::build_bigquery(field, type_ops)),\n            Databricks | Spark => Ok(Self::build_databricks(field, type_ops)),\n            Redshift => Ok(Self::build_redshift(field, type_ops)),\n            Postgres | Salesforce | DuckDB | LakeCompute => {\n                Ok(Self::build_postgres_like(field, type_ops))\n            }\n            Fabric => Ok(Self::build_fabric(field, type_ops)),\n            ClickHouse => Self::build_clickhouse(field, type_ops),\n            Exasol => Ok(Self::build_exasol(field, type_ops)),\n            Starburst => todo!(\"Starburst\"),\n            Athena => todo!(\"Athena\"),\n            Trino => todo!(\"Trino\"),\n            Dremio => todo!(\"Dremio\"),\n            Oracle => todo!(\"Oracle\"),\n            Datafusion => todo!(\"Datafusion\"),\n        }\n    }\n\n    pub fn build_from_parts(\n        &self,\n        name: String,\n        dtype: String,\n        char_size: Option<u32>,\n        numeric_precision: Option<u64>,\n        numeric_scale: Option<u64>,\n        mode: Option<BigqueryColumnMode>,\n    ) -> Column {\n        use AdapterType::*;\n        match self.adapter_type {","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/column/column_builder.rs#L19-L55","documentation":"A `todo!()` panic in `ColumnBuilder::build` (column_builder.rs:37) for the Athena adapter. The adapter-to-column-builder dispatch has no Athena implementation, so converting an Arrow schema into column metadata while connected to Athena panics with the message 'Athena'.","triggerScenarios":"Calling schema_to_columns, get_column_schema_from_query, or update_node_columns (directly or via catalog generation / query result introspection) with the adapter type set to Athena.","commonSituations":"Running docs generation or a schema-aware operation on an Athena adapter profile. Also hit when a test suite exercises Athena adapter coverage before the builder arm exists.","solutions":["Switch to a supported adapter for schema/column operations until Athena is implemented.","Implement the Athena arm in column_builder.rs:37, likely delegating to `build_postgres_like` since Athena (Presto-derived) column types map similarly.","Return a descriptive DbtError instead of `todo!()` so callers get a catchable error rather than an abort."],"exampleFix":"// before\nAthena => todo!(\"Athena\"),\n// after\nAthena => Ok(Self::build_postgres_like(field, type_ops)),","handlingStrategy":"type-guard","validationCode":"if adapter == AdapterType::Athena {\n    return Err(anyhow!(\"Athena column building is not implemented yet\"));\n}","typeGuard":"fn build_supported(t: AdapterType) -> bool {\n    matches!(t, Postgres | Salesforce | DuckDB | LakeCompute | Fabric | ClickHouse | Exasol)\n}","tryCatchPattern":"std::panic::catch_unwind(AssertUnwindSafe(|| builder.build(field, type_ops)))\n    .map_err(|_| anyhow!(\"column building not implemented for this adapter\"))?","preventionTips":["Skip Athena in schema-introspection features until the arm exists","Contribute an Athena arm delegating to build_postgres_like","Test each adapter variant against ColumnBuilder::build in CI","Track adapter coverage in a feature matrix to avoid runtime surprises"],"tags":["rust","adapter","todo-panic","athena","column-builder"],"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"}