From 509c0032c68adab69713e53961903f724d2b2ad0 Mon Sep 17 00:00:00 2001 From: zhaochun Date: Fri, 26 Jul 2019 10:34:11 +0800 Subject: [PATCH] Fix bug which make BE crash when load HLL type --- be/src/olap/schema.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }