Skip to content

Commit

Permalink
Update parquet/src/arrow/arrow_writer/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Taylor-Davies <[email protected]>
  • Loading branch information
Jefffrey and tustvold authored Oct 30, 2023
1 parent a38ca5a commit ef66642
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions parquet/src/arrow/arrow_writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,7 @@ fn write_leaf(writer: &mut ColumnWriter<'_>, levels: &ArrayLevels) -> Result<usi
get_decimal_256_array_slice(array, indices)
}
ArrowDataType::Float16 => {
let array = column
.as_any()
.downcast_ref::<arrow_array::Float16Array>()
.unwrap();
let array = column.as_primitive::<Float16Type>();
get_float_16_array_slice(array, indices)
}
_ => {
Expand Down

0 comments on commit ef66642

Please sign in to comment.