{"record":{"id":"d1d822dbf2d39653","repo":"cube-js/cube","slug":"unimplemented-support-for","errorCode":null,"errorMessage":"Unimplemented support for {:?}","messagePattern":"Unimplemented support for (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"rust/cubesql/cubesql/src/transport/ext.rs","lineNumber":426,"sourceCode":"        if let Some(_) = self\n            .segments\n            .iter()\n            .find(|m| m.name.eq_ignore_ascii_case(member_name))\n        {\n            return Some(MemberType::Boolean);\n        }\n        None\n    }\n}\n\npub fn df_data_type_by_column_type(column_type: ColumnType) -> DataType {\n    match column_type {\n        ColumnType::Int32 | ColumnType::Int64 | ColumnType::Int8 => DataType::Int64,\n        ColumnType::String => DataType::Utf8,\n        ColumnType::Double => DataType::Float64,\n        ColumnType::Boolean => DataType::Boolean,\n        ColumnType::Timestamp => DataType::Timestamp(TimeUnit::Nanosecond, None),\n        _ => panic!(\"Unimplemented support for {:?}\", column_type),\n    }\n}\n","sourceCodeStart":408,"sourceCodeEnd":429,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/rust/cubesql/cubesql/src/transport/ext.rs#L408-L429","documentation":"df_data_type_by_column_type maps Cube ColumnType values to Arrow DataTypes. The catch-all `_ => panic!(\"Unimplemented support for {:?}\")` fires when a column arrives with a ColumnType that has no mapping (e.g. certain Date/Decimal/HLL variants), so DataFrame construction cannot proceed.","triggerScenarios":"A load/transport query returns a column whose Cube ColumnType (from member definitions) is not one of Int8/16/32/64, String, Double, Boolean, Timestamp and is passed to df_data_type.","commonSituations":"Members typed as date, decimal, or special analytics types in the data model; schema drift after adding a new member type on the Cube side while the CubeSQL build is older.","solutions":["Change the member's type in the data model to a supported one (number/string/boolean/time)","Cast the expression in the query to a supported SQL type","Upgrade CubeSQL so the ColumnType is implemented, or add a match arm in df_data_type_by_column_type"],"exampleFix":"// before (data model)\nmeasures:\n  - name: revenue\n    sql: ${TABLE}.revenue\n    type: number\ndimensions:\n  - name: day\n    sql: ${TABLE}.day\n    type: date\n// after\ndimensions:\n  - name: day\n    sql: ${TABLE}.day\n    type: time\n    timeDimension: true","handlingStrategy":"type-guard","validationCode":"fn is_supported_column_type(ct: &ColumnType) -> bool {\n    matches!(\n        ct,\n        ColumnType::Int8 | ColumnType::Int32 | ColumnType::Int64\n            | ColumnType::String | ColumnType::Double\n            | ColumnType::Boolean | ColumnType::Timestamp\n    )\n}\n// verify member column types before issuing load requests","typeGuard":"fn is_supported_column_type(ct: &ColumnType) -> bool {\n    matches!(ct, ColumnType::Int8 | ColumnType::Int32 | ColumnType::Int64 | ColumnType::String | ColumnType::Double | ColumnType::Boolean | ColumnType::Timestamp)\n}","tryCatchPattern":null,"preventionTips":["Type members only with supported Cube types (number/string/boolean/time)","Cast date/decimal expressions to supported SQL types in the query layer","Upgrade CubeSQL when new ColumnTypes are introduced on the Cube side"],"tags":["rust","arrow","column-type","type-mapping","panic"],"backgroundTag":"unsupported-data-type","analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}