diff --git a/be/src/olap/schema.h b/be/src/olap/schema.h index 182da340759165..8a4f5565f503ad 100644 --- a/be/src/olap/schema.h +++ b/be/src/olap/schema.h @@ -46,7 +46,9 @@ class ColumnSchema { // data of Hyperloglog type will call this function. void finalize(void* data) const { - _agg_info->finalize(data, nullptr); + // NOTE(zc): Currently skip null byte, this is different with update interface + // we should unify this + _agg_info->finalize((char*)data + 1, nullptr); } int size() const { return _type_info->size(); }