This is an automated email from the ASF dual-hosted git repository. yangzhg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 16f5204cab fix_md5sum_and_sm3sum (#13009) 16f5204cab is described below commit 16f5204cab20abc6b6a166b6ce0de6aff65f06a8 Author: yongjinhou <109586248+yongjin...@users.noreply.github.com> AuthorDate: Tue Sep 27 21:41:14 2022 +0800 fix_md5sum_and_sm3sum (#13009) --- be/src/exprs/encryption_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/exprs/encryption_functions.cpp b/be/src/exprs/encryption_functions.cpp index 52eb572698..ba49c0c782 100644 --- a/be/src/exprs/encryption_functions.cpp +++ b/be/src/exprs/encryption_functions.cpp @@ -181,7 +181,7 @@ StringVal EncryptionFunctions::md5sum(FunctionContext* ctx, int num_args, const for (int i = 0; i < num_args; ++i) { const StringVal& arg = args[i]; if (arg.is_null) { - continue; + return StringVal::null(); } digest.update(arg.ptr, arg.len); } @@ -204,7 +204,7 @@ StringVal EncryptionFunctions::sm3sum(FunctionContext* ctx, int num_args, const for (int i = 0; i < num_args; ++i) { const StringVal& arg = args[i]; if (arg.is_null) { - continue; + return StringVal::null(); } digest.update(arg.ptr, arg.len); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org