diff --git a/core/src/execution/datafusion/expressions/cast.rs b/core/src/execution/datafusion/expressions/cast.rs index d4503aac5..ab2c2eaf7 100644 --- a/core/src/execution/datafusion/expressions/cast.rs +++ b/core/src/execution/datafusion/expressions/cast.rs @@ -174,7 +174,7 @@ impl Cast { DataType::Int64 => { cast_utf8_to_integral!(string_array, eval_mode, Int64Type, cast_string_to_i64)? } - _ => unreachable!("invalid integral type in cast from string"), + dt => unreachable!(format!("invalid integral type {dt} in cast from string")), }; Ok(cast_array) }