pola-rs/polars · error
Convertme to error
Error message
Convertme to error
What it means
Error "Convertme to error" thrown in pola-rs/polars.
Source
Thrown at crates/polars-compute/src/cast/mod.rs:140
array.offsets().clone(),
new_values,
array.validity().cloned(),
))
}
fn cast_list_to_large_list(array: &ListArray<i32>, to_type: &ArrowDataType) -> ListArray<i64> {
let offsets = array.offsets().into();
ListArray::<i64>::new(
to_type.clone(),
offsets,
array.values().clone(),
array.validity().cloned(),
)
}
fn cast_large_to_list(array: &ListArray<i64>, to_type: &ArrowDataType) -> ListArray<i32> {
let offsets = array.offsets().try_into().expect("Convertme to error");
ListArray::<i32>::new(
to_type.clone(),
offsets,
array.values().clone(),
array.validity().cloned(),
)
}
fn cast_fixed_size_list_to_list<O: Offset>(
fixed: &FixedSizeListArray,
to_type: &ArrowDataType,
options: CastOptionsImpl,
) -> PolarsResult<ListArray<O>> {
let new_values = cast(
fixed.values().as_ref(),
ListArray::<O>::get_child_type(to_type),
options,View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at crates/polars-compute/src/cast/mod.rs:140 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16).
Data as JSON: /api/errors/1123974ce9d49ae0.
Report an issue: GitHub.