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 7196ea1 commit b9ca5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn do_cast_string_to_int<
min_value: T,
) -> CometResult<Option<T>> {
let len = str.len();
if len == 0 {
if str.isEmpty() {
return none_or_err(eval_mode, type_name, str);
}

Expand Down

0 comments on commit b9ca5e2

Please sign in to comment.