pola-rs/polars · error
Writing {:?} to parquet not yet implemented
Error message
Writing {:?} to parquet not yet implemented What it means
todo!() in the parquet page-writing nested-type traversal: the array's physical type matched no supported leaf or nested case (e.g. an unhandled extension or nested encoding), so writing it to parquet is not yet implemented. This is a coverage gap in the writer, not a data-corruption error.
Source
Thrown at crates/polars-parquet/src/arrow/write/pages.rs:526
&mut array_stack,
);
},
P::Null
| P::Boolean
| P::Primitive(_)
| P::Binary
| P::FixedSizeBinary
| P::LargeBinary
| P::Utf8
| P::LargeUtf8
| P::Dictionary(_)
| P::BinaryView
| P::Utf8View
| P::Struct => {
leaves.push(array.with_validity(validity.into()));
},
other => todo!("Writing {:?} to parquet not yet implemented", other),
}
}
}
/// Convert `ParquetType` to `Vec<ParquetPrimitiveType>` leaves in DFS order.
pub fn to_parquet_leaves(type_: ParquetType) -> Vec<ParquetPrimitiveType> {
let mut leaves = vec![];
to_parquet_leaves_recursive(type_, &mut leaves);
leaves
}
fn to_parquet_leaves_recursive(type_: ParquetType, leaves: &mut Vec<ParquetPrimitiveType>) {
match type_ {
ParquetType::PrimitiveType(primitive) => leaves.push(primitive),
ParquetType::GroupType { fields, .. } => {
fields
.into_iter()
.for_each(|type_| to_parquet_leaves_recursive(type_, leaves));View on GitHub (pinned to 68506541d2)
Solutions
- Writing this dtype's pages to parquet is not implemented; convert the column (e.g. to List or Struct) before writing.
- Use a supported encoding/dtype combination for parquet output.
Defensive patterns
Strategy: fallback
When it happens
Trigger: This panic/expect fires when execution reaches an unguarded state described by: "Writing {:?} to parquet not yet implemented". 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.
Common situations: Encountered when input data or configuration does not meet the preconditions of the throwing code path ("Writing {:?} to parquet not yet implemented"). 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.
AI-assisted analysis of pola-rs/polars@68506541d2 (2026-08-19).
Data as JSON: /api/errors/83d38bc53e83bd0a.
Report an issue: GitHub.