{"record":{"id":"fdda7ea88a02886e","repo":"pola-rs/polars","slug":"not-implemented-for-dtype","errorCode":null,"errorMessage":"not implemented for dtype {:?}","messagePattern":"not implemented for dtype (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/utils/mod.rs","lineNumber":396,"sourceCode":"            #[cfg(feature = \"dtype-u8\")]\n            DataType::UInt8 => $macro!(u8 $(, $opt_args)*),\n            #[cfg(feature = \"dtype-u16\")]\n            DataType::UInt16 => $macro!(u16 $(, $opt_args)*),\n            DataType::UInt32 => $macro!(u32 $(, $opt_args)*),\n            DataType::UInt64 => $macro!(u64 $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i8\")]\n            DataType::Int8 => $macro!(i8 $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i16\")]\n            DataType::Int16 => $macro!(i16 $(, $opt_args)*),\n            DataType::Int32 => $macro!(i32 $(, $opt_args)*),\n            DataType::Int64 => $macro!(i64 $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i128\")]\n            DataType::Int128 => $macro!(i128 $(, $opt_args)*),\n            #[cfg(feature = \"dtype-f16\")]\n            DataType::Float16 => $macro!(pf16 $(, $opt_args)*),\n            DataType::Float32 => $macro!(f32 $(, $opt_args)*),\n            DataType::Float64 => $macro!(f64 $(, $opt_args)*),\n            dt => panic!(\"not implemented for dtype {:?}\", dt),\n        }\n    }};\n}\n\n/// Apply a macro on the Series\n#[macro_export]\nmacro_rules! match_dtype_to_logical_apply_macro {\n    ($obj:expr, $macro:ident, $macro_string:ident, $macro_binary:ident, $macro_bool:ident $(, $opt_args:expr)*) => {{\n        match $obj {\n            DataType::String => $macro_string!($($opt_args)*),\n            DataType::Binary => $macro_binary!($($opt_args)*),\n            DataType::Boolean => $macro_bool!($($opt_args)*),\n            #[cfg(feature = \"dtype-u8\")]\n            DataType::UInt8 => $macro!(UInt8Type $(, $opt_args)*),\n            #[cfg(feature = \"dtype-u16\")]\n            DataType::UInt16 => $macro!(UInt16Type $(, $opt_args)*),\n            DataType::UInt32 => $macro!(UInt32Type $(, $opt_args)*),\n            DataType::UInt64 => $macro!(UInt64Type $(, $opt_args)*),","sourceCodeStart":378,"sourceCodeEnd":414,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/utils/mod.rs#L378-L414","documentation":"The no_matching_dtype macro in polars-core utils dispatches on DataType to per-type code with feature-gated arms; when a dtype has no matching arm (unsupported or feature-disabled) it panics with 'not implemented for dtype {:?}' naming the dtype. Generic sentinel for unimplemented dtype-specific operations.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"not implemented for dtype {:?}\". 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 (\"not implemented for dtype {:?}\"). 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":["This utility is not implemented for the dtype; cast to a supported dtype before calling.","Check whether a `dtype-*` cargo feature adds support for this type."],"exampleFix":null,"handlingStrategy":"type-guard","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"}