From 908d6cca2b4029d3acd97ae15063ec99d31e361d Mon Sep 17 00:00:00 2001 From: airborne12 Date: Wed, 9 Oct 2024 11:16:15 +0800 Subject: [PATCH] [Enhancement](inverted index) return OK instead of not supported in expr evaluate_inverted_index (#41567) ## Proposed changes Fix annoying error stack info --- 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 0b1b6805f2d996..558b4f57eabe0a 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