This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 21b3e4bbf98 [Bug](runtime-filter) fix core dump on rf between varchar
and char #43758 (#43934)
21b3e4bbf98 is described below
commit 21b3e4bbf98b2c895ffdad9c89065f2602a2c872
Author: Pxl <[email protected]>
AuthorDate: Sat Nov 16 15:59:19 2024 +0800
[Bug](runtime-filter) fix core dump on rf between varchar and char #43758
(#43934)
#43758
---
be/src/exprs/create_predicate_function.h | 2 +-
be/src/olap/bloom_filter_predicate.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/src/exprs/create_predicate_function.h
b/be/src/exprs/create_predicate_function.h
index 11889ff2ec3..afc105dab0c 100644
--- a/be/src/exprs/create_predicate_function.h
+++ b/be/src/exprs/create_predicate_function.h
@@ -232,7 +232,7 @@ ColumnPredicate* create_olap_column_predicate(uint32_t
column_id,
std::shared_ptr<BloomFilterFuncBase> filter_olap;
filter_olap.reset(create_bloom_filter(PT));
filter_olap->light_copy(filter.get());
- return new BloomFilterColumnPredicate<PT>(column_id, filter);
+ return new BloomFilterColumnPredicate<PT>(column_id, filter_olap);
}
template <PrimitiveType PT>
diff --git a/be/src/olap/bloom_filter_predicate.h
b/be/src/olap/bloom_filter_predicate.h
index 9cc95d7152a..2c47b6226ea 100644
--- a/be/src/olap/bloom_filter_predicate.h
+++ b/be/src/olap/bloom_filter_predicate.h
@@ -90,7 +90,9 @@ private:
int get_filter_id() const override {
int filter_id = _filter->get_filter_id();
- DCHECK(filter_id != -1);
+ if (filter_id == 1) {
+ throw Exception(ErrorCode::INTERNAL_ERROR, "filter_id is -1");
+ }
return filter_id;
}
bool is_filter() const override { return true; }
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]