Youngwb commented on a change in pull request #3869: URL: https://github.com/apache/incubator-doris/pull/3869#discussion_r441282304
########## File path: be/src/olap/aggregate_func.h ########## @@ -449,15 +449,22 @@ struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_REPLACE_IF_NOT_NULL, OLAP_FIEL template <> struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_HLL_UNION, OLAP_FIELD_TYPE_HLL> { static void init(RowCursorCell* dst, const char* src, bool src_null, MemPool* mem_pool, ObjectPool* agg_pool) { - DCHECK_EQ(src_null, false); dst->set_not_null(); auto* src_slice = reinterpret_cast<const Slice*>(src); auto* dst_slice = reinterpret_cast<Slice*>(dst->mutable_cell_ptr()); + // Because of history bug, we ingest some NULL HLL data in storage, + // which slice data is nullptr or invalid address, + // we must handle this case to avoid process crash. + HyperLogLog* hll = nullptr; Review comment: I think this pr is a fix for #1908, which handles the scenario where HLL data is nullptr but does not handle dirty data. And according to it's comments, it suggested to remove these check for null HLL column later. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org