From f9604cc77919377298d154182689f40b9bae5c08 Mon Sep 17 00:00:00 2001 From: BiteTheDDDDt Date: Thu, 10 Oct 2024 20:06:10 +0800 Subject: [PATCH] fix wrong check on BloomFilterFuncBase::merge --- be/src/exprs/bloom_filter_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/exprs/bloom_filter_func.h b/be/src/exprs/bloom_filter_func.h index 6f82897b9535ef..eaf3a652dbc963 100644 --- a/be/src/exprs/bloom_filter_func.h +++ b/be/src/exprs/bloom_filter_func.h @@ -162,8 +162,8 @@ class BloomFilterFuncBase : public RuntimeFilterFuncBase { // allocate memory again. if (!_inited) { auto* other_func = static_cast(bloomfilter_func); - if (_bloom_filter == nullptr) { - return Status::InternalError("_bloom_filter is nullptr"); + if (_bloom_filter != nullptr) { + return Status::InternalError("_bloom_filter must is nullptr"); } _bloom_filter = bloomfilter_func->_bloom_filter; _bloom_filter_alloced = other_func->_bloom_filter_alloced;