Skip to content

Commit dae5e50

Browse files
committed
add numeric coercion
1 parent d3efad4 commit dae5e50

File tree

1 file changed

+2
-0
lines changed
  • datafusion/expr-common/src/type_coercion

1 file changed

+2
-0
lines changed

datafusion/expr-common/src/type_coercion/binary.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,10 @@ fn string_numeric_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<D
684684
match (lhs_type, rhs_type) {
685685
(Utf8, _) if rhs_type.is_numeric() => Some(Utf8),
686686
(LargeUtf8, _) if rhs_type.is_numeric() => Some(LargeUtf8),
687+
(Utf8View, _) if rhs_type.is_numeric() => Some(Utf8View),
687688
(_, Utf8) if lhs_type.is_numeric() => Some(Utf8),
688689
(_, LargeUtf8) if lhs_type.is_numeric() => Some(LargeUtf8),
690+
(_, Utf8View) if lhs_type.is_numeric() => Some(Utf8View),
689691
_ => None,
690692
}
691693
}

0 commit comments

Comments
 (0)