{"record":{"id":"93e52a44ec3286ed","repo":"pola-rs/polars","slug":"thrift-bool-field","errorCode":null,"errorMessage":"thrift bool field","messagePattern":"thrift bool field","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-parquet/src/parquet/handwritten_thrift/file_metadata_thrift.rs","lineNumber":350,"sourceCode":"    // footer; skip the bytes themselves.\n    read_struct_fields!(prot, |f| {\n        1 => prot.skip_binary()?,\n        2 => prot.skip_binary()?,\n        3 => null_count = Some(prot.read_i64()?),\n        4 => distinct_count = Some(prot.read_i64()?),\n        5 => {\n            let len = prot.read_vlq()? as u32;\n            let offset = prot.offset_from(origin_ptr);\n            prot.skip_bytes(len as usize)?;\n            max_value = Some(ByteRange { offset, len });\n        },\n        6 => {\n            let len = prot.read_vlq()? as u32;\n            let offset = prot.offset_from(origin_ptr);\n            prot.skip_bytes(len as usize)?;\n            min_value = Some(ByteRange { offset, len });\n        },\n        7 => is_max_value_exact = Some(f.bool_val.expect(\"thrift bool field\")),\n        8 => is_min_value_exact = Some(f.bool_val.expect(\"thrift bool field\")),\n    });\n\n    Ok(CompactStatistics {\n        null_count,\n        distinct_count,\n        max_value,\n        min_value,\n        is_max_value_exact,\n        is_min_value_exact,\n    })\n}\n\n/// Decode a `KeyValue` (kept as format-crate type, polars exposes it directly).\nfn read_key_value(prot: &mut ThriftSliceInputProtocol<'_>) -> ParquetResult<KeyValue> {\n    let mut key: Option<String> = None;\n    let mut value: Option<String> = None;\n","sourceCodeStart":332,"sourceCodeEnd":368,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/crates/polars-parquet/src/parquet/handwritten_thrift/file_metadata_thrift.rs#L332-L368","documentation":"Error \"thrift bool field\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at crates/polars-parquet/src/parquet/handwritten_thrift/file_metadata_thrift.rs:350 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"df599052daf96e7a9cc30a3b0c6bd25d6947e3c0","analyzedAt":"2026-08-16T12:10:03.978Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}