{"record":{"id":"624a0489062691c7","repo":"pola-rs/polars","slug":"unsupported-in-row-encoding","errorCode":null,"errorMessage":"Unsupported in row encoding","messagePattern":"Unsupported in row encoding","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/chunked_array/ops/row_encode.rs","lineNumber":113,"sourceCode":"        | DataType::Null\n        | DataType::Time\n        | DataType::Date\n        | DataType::Datetime(_, _)\n        | DataType::Duration(_) => None,\n\n        #[cfg(feature = \"dtype-categorical\")]\n        DataType::Categorical(_, mapping) | DataType::Enum(_, mapping) => {\n            use polars_row::RowEncodingCategoricalContext;\n\n            Some(RowEncodingContext::Categorical(\n                RowEncodingCategoricalContext {\n                    is_enum: matches!(dtype, DataType::Enum(_, _)),\n                    mapping: mapping.clone(),\n                },\n            ))\n        },\n\n        DataType::Unknown(_) => panic!(\"Unsupported in row encoding\"),\n\n        #[cfg(feature = \"object\")]\n        DataType::Object(_) => panic!(\"Unsupported in row encoding\"),\n\n        #[cfg(feature = \"dtype-decimal\")]\n        DataType::Decimal(precision, _) => Some(RowEncodingContext::Decimal(*precision)),\n\n        #[cfg(feature = \"dtype-array\")]\n        DataType::Array(dtype, _) => get_row_encoding_context(dtype),\n        DataType::List(dtype) => get_row_encoding_context(dtype),\n        #[cfg(feature = \"dtype-struct\")]\n        DataType::Struct(fs) => {\n            let mut ctxts = Vec::new();\n\n            for (i, f) in fs.iter().enumerate() {\n                if let Some(ctxt) = get_row_encoding_context(f.dtype()) {\n                    ctxts.reserve(fs.len());\n                    ctxts.extend(std::iter::repeat_n(None, i));","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/chunked_array/ops/row_encode.rs#L95-L131","documentation":"todo!() in the row-encoding dtype dispatch: the column's DataType has no row-encoding representation implemented, so it cannot participate in row-encoded operations (sort/join keys). Signals unsupported functionality for that dtype.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"Unsupported in row encoding\". Typical triggers: unsupported dtype or feature-gated code path reached at runtime, invalid user input or environment variable value, calling API methods in the wrong order or on mismatched types, or data (lengths, offsets, ranges) violating the function's preconditions.","commonSituations":"Encountered when input data or configuration does not meet the preconditions of the throwing code path (\"Unsupported in row encoding\"). Common cases: missing Cargo feature flags, mismatched dtypes/lengths between arrays or series, out-of-range temporal values, malformed environment variables, or operations on unsupported/complex nested types.","solutions":["Row encoding does not support this dtype; cast the column to a supported type (numeric, string, bool) before row encoding.","Exclude the unsupported column from the row-encoded operation."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"68506541d2de983056c9eb244e1ea05fab377dfc","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}