You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/04/07 00:36:42 UTC

[incubator-doris] branch master updated: min and max window function bug fix (#8822)

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/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new e53c90fbef min and max window function bug fix (#8822)
e53c90fbef is described below

commit e53c90fbef2174836d85c7838e84792a0075a4d5
Author: camby <10...@qq.com>
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 157cb113d8..bf6a5ca0cb 100644
--- a/be/src/exprs/agg_fn_evaluator.cpp
+++ b/be/src/exprs/agg_fn_evaluator.cpp
@@ -346,7 +346,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org