diff --git a/core/src/execution/datafusion/expressions/cast.rs b/core/src/execution/datafusion/expressions/cast.rs index f6edb1cdd..29d8181c5 100644 --- a/core/src/execution/datafusion/expressions/cast.rs +++ b/core/src/execution/datafusion/expressions/cast.rs @@ -292,7 +292,7 @@ fn do_cast_string_to_int< min_value: T, ) -> CometResult> { let len = str.len(); - if len == 0 { + if str.isEmpty() { return none_or_err(eval_mode, type_name, str); }