Skip to content

Commit eeaee64

Browse files
Ian LaiIan Lai
Ian Lai
authored and
Ian Lai
committed
support null for md5 function
1 parent c35d30c commit eeaee64

File tree

1 file changed

+2
-2
lines changed
  • datafusion/functions/src/crypto

1 file changed

+2
-2
lines changed

datafusion/functions/src/crypto/md5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ impl ScalarUDFImpl for Md5Func {
9393
use DataType::*;
9494
Ok(match &arg_types[0] {
9595
LargeUtf8 | LargeBinary => Utf8,
96-
Utf8View | Utf8 | Binary => Utf8,
96+
Utf8View | Utf8 | Binary | BinaryView => Utf8,
9797
Null => Null,
9898
Dictionary(_, t) => match **t {
9999
LargeUtf8 | LargeBinary => Utf8,
100-
Utf8 | Binary => Utf8,
100+
Utf8 | Binary | BinaryView => Utf8,
101101
Null => Null,
102102
_ => {
103103
return plan_err!(

0 commit comments

Comments
 (0)