{"record":{"id":"4d1b484e02836a5c","repo":"pola-rs/polars","slug":"activate-the-object-feature-to-be-able-to-load-p","errorCode":null,"errorMessage":"activate the 'object' feature to be able to load POLARS_EXTENSION_TYPE","messagePattern":"activate the 'object' feature to be able to load POLARS_EXTENSION_TYPE","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/datatypes/field.rs","lineNumber":268,"sourceCode":"                }\n            },\n\n            #[cfg(feature = \"dtype-struct\")]\n            ArrowDataType::Struct(fields) => {\n                DataType::Struct(fields.iter().map(|fld| fld.into()).collect())\n            },\n            #[cfg(not(feature = \"dtype-struct\"))]\n            ArrowDataType::Struct(_) => {\n                panic!(\"activate the 'dtype-struct' feature to handle struct data types\")\n            },\n            ArrowDataType::Extension(ext) if ext.name.as_str() == POLARS_OBJECT_EXTENSION_NAME => {\n                #[cfg(feature = \"object\")]\n                {\n                    DataType::Object(\"object\")\n                }\n                #[cfg(not(feature = \"object\"))]\n                {\n                    panic!(\"activate the 'object' feature to be able to load POLARS_EXTENSION_TYPE\")\n                }\n            },\n            #[cfg(feature = \"dtype-extension\")]\n            ArrowDataType::Extension(ext) => {\n                use crate::prelude::extension::get_extension_type_or_storage;\n                let storage = DataType::from_arrow(&ext.inner, md);\n                match get_extension_type_or_storage(&ext.name, &storage, ext.metadata.as_deref()) {\n                    Some(typ) => DataType::Extension(typ, Box::new(storage)),\n                    None => storage,\n                }\n            },\n            #[cfg(feature = \"dtype-decimal\")]\n            ArrowDataType::Decimal(precision, scale)\n            | ArrowDataType::Decimal32(precision, scale)\n            | ArrowDataType::Decimal64(precision, scale)\n            | ArrowDataType::Decimal256(precision, scale) => DataType::Decimal(*precision, *scale),\n            ArrowDataType::Utf8View | ArrowDataType::LargeUtf8 | ArrowDataType::Utf8 => {\n                DataType::String","sourceCodeStart":250,"sourceCodeEnd":286,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/datatypes/field.rs#L250-L286","documentation":"When converting an Arrow extension array whose name is POLARS_OBJECT_EXTENSION_NAME, Field::from_arrow requires the 'object' cargo feature to reconstruct the Polars Object dtype; builds without it panic with this message. Enable the 'object' feature or avoid object-dtype data.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"activate the 'object' feature to be able to load POLARS_EXTENSION_TYPE\". 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 (\"activate the 'object' feature to be able to load POLARS_EXTENSION_TYPE\"). 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":["Enable the `object` cargo feature to load POLARS_EXTENSION_TYPE fields.","Rewrite the data without extension/object types if the feature cannot be enabled."],"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"}