{"record":{"id":"88bceaa82884dc64","repo":"pola-rs/polars","slug":"operator-does-not-support-primitive","errorCode":null,"errorMessage":"operator does not support primitive `{:?}`","messagePattern":"operator does not support primitive `(.+?)`","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-arrow/src/util/macros.rs","lineNumber":23,"sourceCode":"    macro_rules! __with_ty__ {( $_ $T:ident ) => ( $($body)* )}\n    use polars_utils::float16::pf16;\n    use $crate::datatypes::PrimitiveType::*;\n\n    match $key_type {\n        Int8 => __with_ty__! { i8 },\n        Int16 => __with_ty__! { i16 },\n        Int32 => __with_ty__! { i32 },\n        Int64 => __with_ty__! { i64 },\n        Int128 => __with_ty__! { i128 },\n        UInt8 => __with_ty__! { u8 },\n        UInt16 => __with_ty__! { u16 },\n        UInt32 => __with_ty__! { u32 },\n        UInt64 => __with_ty__! { u64 },\n        UInt128 => __with_ty__! { u128 },\n        Float16 => __with_ty__! { pf16 },\n        Float32 => __with_ty__! { f32 },\n        Float64 => __with_ty__! { f64 },\n        _ => panic!(\"operator does not support primitive `{:?}`\",\n            $key_type)\n    }\n})}\n\n#[macro_export]\nmacro_rules! with_match_primitive_type_full {(\n    $key_type:expr, | $_:tt $T:ident | $($body:tt)*\n) => ({\n    macro_rules! __with_ty__ {( $_ $T:ident ) => ( $($body)* )}\n    use polars_utils::float16::pf16;\n    use $crate::datatypes::PrimitiveType::*;\n\n    match $key_type {\n        Int8 => __with_ty__! { i8 },\n        Int16 => __with_ty__! { i16 },\n        Int32 => __with_ty__! { i32 },\n        Int64 => __with_ty__! { i64 },\n        Int128 => __with_ty__! { i128 },","sourceCodeStart":5,"sourceCodeEnd":41,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-arrow/src/util/macros.rs#L5-L41","documentation":"Panic arm of the with_match_physical_primitive_key macro: the dtype's physical key type did not match any known primitive variant, so the macro cannot monomorphize the operation body for it. Indicates an unsupported dtype reached a primitive-only code path (internal dispatch error).","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"operator does not support primitive `{:?}`\". 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 (\"operator does not support primitive `{:?}`\"). 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":["Apply the operator/macro only to supported primitive types; add the missing type to the macro's type list if intentional.","Cast the value to a supported primitive type (e.g. i64/f64) before applying the operation."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}