This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new 57e6d261d1 fix_md5sum_and_sm3sum (#13009)
57e6d261d1 is described below
commit 57e6d261d1b86d55964de792fb15795bc3f8690c
Author: yongjinhou <[email protected]>
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 a4d93b776f..5623b21874 100644
--- a/be/src/exprs/encryption_functions.cpp
+++ b/be/src/exprs/encryption_functions.cpp
@@ -185,7 +185,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);
}
@@ -208,7 +208,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: [email protected]
For additional commands, e-mail: [email protected]