Skip to content

Commit

Permalink
fix core dump on rf between varchar and char
Browse files Browse the repository at this point in the history
  • Loading branch information
BiteTheDDDDt committed Jan 14, 2025
1 parent 6debbc3 commit 975efa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/exprs/create_predicate_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ 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, be_exec_version);
// create a new filter to match the input filter and PT. For example, filter may be varchar, but PT is char
return new BloomFilterColumnPredicate<PT>(column_id, filter_olap, be_exec_version);
}

template <PrimitiveType PT>
Expand Down

0 comments on commit 975efa3

Please sign in to comment.