Skip to content

Commit

Permalink
[Bug](runtime-filter) fix wrong check on BloomFilterFuncBase::merge (a…
Browse files Browse the repository at this point in the history
…pache#41670)

## Proposed changes
fix wrong check on BloomFilterFuncBase::merge
introduced by apache#41648
  • Loading branch information
BiteTheDDDDt authored Oct 10, 2024
1 parent 0a26ad8 commit a9caf05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/exprs/bloom_filter_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class BloomFilterFuncBase : public RuntimeFilterFuncBase {
// allocate memory again.
if (!_inited) {
auto* other_func = static_cast<BloomFilterFuncBase*>(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;
Expand Down

0 comments on commit a9caf05

Please sign in to comment.