From e40174398cc9947dc0728ccab8bbfd48a1aba322 Mon Sep 17 00:00:00 2001 From: zhiqiang-hhhh Date: Fri, 2 Aug 2024 17:07:19 +0800 Subject: [PATCH 1/2] FIX --- be/src/vec/utils/util.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/be/src/vec/utils/util.hpp b/be/src/vec/utils/util.hpp index 67c5bebbca8150..3971cd00fdbf2c 100644 --- a/be/src/vec/utils/util.hpp +++ b/be/src/vec/utils/util.hpp @@ -20,6 +20,7 @@ #include #include +#include #include "runtime/descriptors.h" #include "util/simd/bits.h" @@ -116,9 +117,11 @@ class VectorizedUtils { 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) { From 1ef213414848bbf418df6e9ba85f911c3dbdfeea Mon Sep 17 00:00:00 2001 From: zhiqiang-hhhh Date: Fri, 2 Aug 2024 17:09:14 +0800 Subject: [PATCH 2/2] FIX --- be/src/vec/utils/util.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/be/src/vec/utils/util.hpp b/be/src/vec/utils/util.hpp index 3971cd00fdbf2c..3c5f4f194aac9b 100644 --- a/be/src/vec/utils/util.hpp +++ b/be/src/vec/utils/util.hpp @@ -20,7 +20,6 @@ #include #include -#include #include "runtime/descriptors.h" #include "util/simd/bits.h"