min and max window function bug fix (#8822)

[Fix bug] min and max window function bug fix #8822
This commit is contained in:
camby
2022-04-07 08:36:33 +08:00
committed by GitHub
parent 319f1f634a
commit e53c90fbef

View File

@ -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;
}