Skip to content

Commit

Permalink
Update core/src/execution/datafusion/expressions/cast.rs
Browse files Browse the repository at this point in the history
Co-authored-by: comphead <[email protected]>
  • Loading branch information
andygrove and comphead authored Apr 29, 2024
1 parent 9906c91 commit a8fada1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ impl Cast {
cast_with_options(&array, &DataType::LargeUtf8, &CAST_OPTIONS)?;
Self::cast_string_to_int::<i64>(to_type, &unpacked_array, self.eval_mode)?
}
_ => unreachable!("invalid value type for dictionary-encoded string array"),
dt => unreachable!(
"{}",
format!("invalid value type {dt} for dictionary-encoded string array")
),
}
}
_ => {
Expand Down

0 comments on commit a8fada1

Please sign in to comment.