{"record":{"id":"1799b822d7cb1aa9","repo":"pola-rs/polars","slug":"nested-lists","errorCode":null,"errorMessage":"nested lists","messagePattern":"nested lists","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-plan/src/plans/lit.rs","lineNumber":148,"sourceCode":"                #[cfg(feature = \"dtype-i128\")]\n                {\n                    Int128Chunked::from_iter_options(get_literal_name(), vs.into_iter())\n                        .into_series()\n                }\n\n                #[cfg(not(feature = \"dtype-i128\"))]\n                {\n                    Int64Chunked::from_iter_options(\n                        get_literal_name(),\n                        vs.into_iter().map(|v| v.map(|v| v as i64)),\n                    )\n                    .into_series()\n                }\n            },\n            DynListLiteralValue::Float(vs) => {\n                Float64Chunked::from_iter_options(get_literal_name(), vs.into_iter()).into_series()\n            },\n            DynListLiteralValue::List(_) => todo!(\"nested lists\"),\n        };\n\n        let s = s.cast_with_options(inner_dtype, options)?;\n        let value = match dtype {\n            DataType::List(_) => AnyValue::List(s),\n            #[cfg(feature = \"dtype-array\")]\n            DataType::Array(_, size) => AnyValue::Array(s, *size),\n            _ => unreachable!(),\n        };\n\n        Ok(Scalar::new(dtype.clone(), value))\n    }\n}\n\nimpl DynLiteralValue {\n    pub fn try_materialize_to_dtype(\n        self,\n        dtype: &DataType,","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-plan/src/plans/lit.rs#L130-L166","documentation":"Feature-configuration expect in the integer-list literal path: with dtype-i128 disabled, each Int128 literal is cast to i64, and this expect fires when a value does not fit in i64. The string 'nested lists' labels the surrounding literal-materialization context; the actual fault is an out-of-range integer under the disabled feature.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"nested lists\". 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 (\"nested lists\"). 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":["Nested list literals are not supported here; construct nested lists via Series builders instead.","Build the nested list column from typed chunks rather than a literal."],"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-14T00:17:10.932Z"}