From 0d781fdc5780ba55f5234242db2de8dc917963f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E5=87=AF?= Date: Tue, 8 Oct 2024 20:22:33 +0800 Subject: [PATCH] [Enhancement](inverted index) return OK instead of not supported in expr evaluate_inverted_index --- be/src/vec/exprs/vexpr.h | 2 +- be/src/vec/functions/function.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/vec/exprs/vexpr.h b/be/src/vec/exprs/vexpr.h index aad67d5719fa15..32ed4c84300437 100644 --- a/be/src/vec/exprs/vexpr.h +++ b/be/src/vec/exprs/vexpr.h @@ -120,7 +120,7 @@ class VExpr { // execute current expr with inverted index to filter block. Given a roaring bitmap of match rows virtual Status evaluate_inverted_index(VExprContext* context, uint32_t segment_num_rows) { - return Status::NotSupported("Not supported execute_with_inverted_index"); + return Status::OK(); } Status _evaluate_inverted_index(VExprContext* context, const FunctionBasePtr& function, diff --git a/be/src/vec/functions/function.h b/be/src/vec/functions/function.h index d53ad821dcfcf0..6cc5fad4922bbd 100644 --- a/be/src/vec/functions/function.h +++ b/be/src/vec/functions/function.h @@ -195,8 +195,7 @@ class IFunctionBase { const std::vector& data_type_with_names, std::vector iterators, uint32_t num_rows, segment_v2::InvertedIndexResultBitmap& bitmap_result) const { - return Status::NotSupported("evaluate_inverted_index is not supported in function: ", - get_name()); + return Status::OK(); } /// Do cleaning work when function is finished, i.e., release state variables in the