[Bug] Fix bug that the min/max function has an error in handling string null values. (#5189)
null should be ignored in min/max function. And if there is no data, null should be return. Co-authored-by: morningman <chenmingyu@baidu.com>
This commit is contained in:
@ -300,6 +300,7 @@ struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_MAX, 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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user