Skip to content

Commit 0db2c5b

Browse files
Ian LaiIan Lai
Ian Lai
authored and
Ian Lai
committed
support binaryView for coerced_from
1 parent 4f1d604 commit 0db2c5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datafusion/expr/src/type_coercion/functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ fn coerced_from<'a>(
860860
(Utf8View, Utf8 | LargeUtf8 | Null) => Some(type_into.clone()),
861861
// Any type can be coerced into strings
862862
(Utf8 | LargeUtf8, _) => Some(type_into.clone()),
863+
(Binary, Binary | LargeBinary | BinaryView) => Some(type_into.clone()),
863864
(Null, _) if can_cast_types(type_from, type_into) => Some(type_into.clone()),
864865

865866
(List(_), FixedSizeList(_, _)) => Some(type_into.clone()),

0 commit comments

Comments
 (0)