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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new bfa6bc3  [fix](function) fix aggregate function min() at type varchar 
(#7437)
bfa6bc3 is described below

commit bfa6bc3b0a5a2f6f9b4e317a7c2642eaf7907fdf
Author: Pxl <[email protected]>
AuthorDate: Fri Dec 24 21:27:01 2021 +0800

    [fix](function) fix aggregate function min() at type varchar (#7437)
---
 be/src/olap/aggregate_func.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/olap/aggregate_func.h b/be/src/olap/aggregate_func.h
index a64ed14..f199633 100644
--- a/be/src/olap/aggregate_func.h
+++ b/be/src/olap/aggregate_func.h
@@ -235,6 +235,7 @@ struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_MIN, 
OLAP_FIELD_TYPE_VARCHAR>
                 memory_copy(dst_slice->data, src_slice->data, src_slice->size);
                 dst_slice->size = src_slice->size;
             }
+            dst->set_is_null(false);
         }
     }
 };

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

Reply via email to