This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 2cb652a7fa7b51232860d6c90fd5dd049b733f35
Author: amory <[email protected]>
AuthorDate: Thu Mar 21 15:40:40 2024 +0800

    [FIX](compile)fix for gcc compile (#32508)
    
    * fix for gcc compile
---
 be/src/vec/aggregate_functions/aggregate_function_collect.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/aggregate_functions/aggregate_function_collect.h 
b/be/src/vec/aggregate_functions/aggregate_function_collect.h
index 4d1f77fe380..ac555982461 100644
--- a/be/src/vec/aggregate_functions/aggregate_function_collect.h
+++ b/be/src/vec/aggregate_functions/aggregate_function_collect.h
@@ -678,7 +678,7 @@ public:
                                             Arena* arena, const size_t 
num_rows) const override {
         if constexpr (ShowNull::value) {
             for (size_t i = 0; i != num_rows; ++i) {
-                if (places[i] + offset) {
+                if (places[i]) {
                     this->data(places[i] + offset)
                             .deserialize_and_merge(*assert_cast<const 
IColumn*>(column), i);
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to