From e53c90fbef2174836d85c7838e84792a0075a4d5 Mon Sep 17 00:00:00 2001 From: camby <104178625@qq.com> Date: Thu, 7 Apr 2022 08:36:33 +0800 Subject: [PATCH] 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; }