[refactor](be) refactor predicate function creator (#7054)

Refactor predicate function creator, make MinMaxFunction/HybridSet/BloomFilter
use a unified interface through template to get function.
This commit is contained in:
Pxl
2021-11-24 10:39:29 +08:00
committed by GitHub
parent d3c020b3cb
commit a74fdf184c
15 changed files with 278 additions and 288 deletions

View File

@ -85,7 +85,8 @@ Status InPredicate::prepare(RuntimeState* state, const RowDescriptor& row_desc,
if (_children.size() < 1) {
return Status::InternalError("no Function operator in.");
}
_hybrid_set.reset(HybridSetBase::create_set(_children[0]->type().type));
_hybrid_set.reset(create_set(_children[0]->type().type));
if (nullptr == _hybrid_set.get()) {
return Status::InternalError("Unknown column type.");
}