This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 39c9e353681 [fix](update null map) Fix update_null_map (#38787)
39c9e353681 is described below
commit 39c9e3536815cdbae6c34c40ee3b5a8454fbcd92
Author: zhiqiang <[email protected]>
AuthorDate: Tue Aug 6 11:05:56 2024 +0800
[fix](update null map) Fix update_null_map (#38787)
When `is_single == true` and `r[0]==false`, we will get unstable result.
---
be/src/vec/utils/util.hpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/be/src/vec/utils/util.hpp b/be/src/vec/utils/util.hpp
index 67c5bebbca8..3c5f4f194aa 100644
--- a/be/src/vec/utils/util.hpp
+++ b/be/src/vec/utils/util.hpp
@@ -116,9 +116,11 @@ public:
size_t size = dst.size();
auto* __restrict l = dst.data();
auto* __restrict r = src.data();
- if (is_single && r[0]) {
- for (size_t i = 0; i < size; ++i) {
- l[i] = 1;
+ if (is_single) {
+ if (r[0]) {
+ for (size_t i = 0; i < size; ++i) {
+ l[i] = 1;
+ }
}
} else {
for (size_t i = 0; i < size; ++i) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]