Skip to content

Commit

Permalink
refactor: Improve error message for Zero-Field Structs with Parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Oct 22, 2024
1 parent 81154ed commit 0358685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-parquet/src/arrow/write/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub fn to_parquet_type(field: &Field) -> PolarsResult<ParquetType> {
ArrowDataType::Struct(fields) => {
if fields.is_empty() {
polars_bail!(InvalidOperation:
"Parquet does not support writing empty structs".to_string(),
"Unable to write struct type with no child field to Parquet. Consider adding a dummy child field.".to_string(),
)
}
// recursively convert children to types/nodes
Expand Down

0 comments on commit 0358685

Please sign in to comment.