{"record":{"id":"eac045005f67a427","repo":"pola-rs/polars","slug":"list-too-large","errorCode":null,"errorMessage":"List too large","messagePattern":"List too large","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-parquet/src/arrow/read/deserialize/mod.rs","lineNumber":78,"sourceCode":"            let offsets = offsets.iter().map(|x| *x as i32).collect::<Vec<_>>();\n\n            let offsets: Offsets<i32> = offsets\n                .try_into()\n                .expect(\"i64 offsets do not fit in i32 offsets\");\n\n            Box::new(ListArray::<i32>::new(\n                dtype,\n                offsets.into(),\n                values,\n                validity,\n            ))\n        },\n        ArrowDataType::LargeList(_) => {\n            offsets.push(values.len() as i64);\n\n            Box::new(ListArray::<i64>::new(\n                dtype,\n                offsets.try_into().expect(\"List too large\"),\n                values,\n                validity,\n            ))\n        },\n        ArrowDataType::FixedSizeList(_, _) => {\n            Box::new(FixedSizeListArray::new(dtype, length, values, validity))\n        },\n        _ => unreachable!(),\n    }\n}\n\n/// Creates a new [`MapArray`].\npub fn create_map(\n    dtype: ArrowDataType,\n    nested: &mut NestedState,\n    values: Box<dyn Array>,\n) -> Box<dyn Array> {\n    let (_, mut offsets, validity) = nested.pop().unwrap();","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-parquet/src/arrow/read/deserialize/mod.rs#L60-L96","documentation":"expect when building an IPC LargeList whose Offsets buffer cannot be constructed (offset overflow beyond i64 limits). Practically unreachable for real data; indicates corrupt or absurd offset values during deserialization.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"List too large\". 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 (\"List too large\"). 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":["The list column exceeds the maximum supported size; chunk the data or use LargeList dtype.","Reduce the number of elements per list or split the column."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}