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

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

commit b77baafcaca0912bdac5bef72c248f5ed9fb7b83
Author: camby <[email protected]>
AuthorDate: Thu Apr 7 08:36:33 2022 +0800

    min and max window function bug fix (#8822)
    
    [Fix bug] min and max window function bug fix #8822
---
 be/src/exprs/agg_fn_evaluator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/exprs/agg_fn_evaluator.cpp 
b/be/src/exprs/agg_fn_evaluator.cpp
index 2b0679cf4c..ecd0b6e666 100644
--- a/be/src/exprs/agg_fn_evaluator.cpp
+++ b/be/src/exprs/agg_fn_evaluator.cpp
@@ -345,7 +345,7 @@ inline void AggFnEvaluator::set_any_val(const void* slot, 
const TypeDescriptor&
 
 inline void AggFnEvaluator::set_output_slot(const AnyVal* src, const 
SlotDescriptor* dst_slot_desc,
                                             Tuple* dst) {
-    if (src->is_null) {
+    if (src->is_null && dst_slot_desc->is_nullable()) {
         dst->set_null(dst_slot_desc->null_indicator_offset());
         return;
     }


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

Reply via email to