[enhance](match) Support match query without inverted index (#19936)

This commit is contained in:
YueW
2023-05-30 15:02:57 +08:00
committed by GitHub
parent e623f3fb9e
commit de08c4a57b
19 changed files with 783 additions and 275 deletions

View File

@ -609,6 +609,14 @@ Status VScanNode::_normalize_predicate(const VExprSPtr& conjunct_expr_root, VExp
return Status::OK();
}
if (pdt == PushDownType::ACCEPTABLE &&
TExprNodeType::MATCH_PRED == cur_expr->node_type()) {
// remaining it in the expr tree, in order to filter by function if the pushdown
// match_predicate failed to apply inverted index in the storage layer
output_expr = conjunct_expr_root; // remaining in conjunct tree
return Status::OK();
}
if (pdt == PushDownType::ACCEPTABLE && _is_key_column(slot->col_name())) {
output_expr = nullptr;
return Status::OK();