From 8a856d78f64118326d301f66330a56bc6777fd26 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 23 Apr 2024 13:49:27 -0600 Subject: [PATCH] Update core/src/execution/datafusion/expressions/cast.rs Co-authored-by: comphead --- core/src/execution/datafusion/expressions/cast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }