Skip to content

Commit 908d6cc

Browse files
committed
[Enhancement](inverted index) return OK instead of not supported in expr evaluate_inverted_index (apache#41567)
## Proposed changes Fix annoying error stack info
1 parent b0d661d commit 908d6cc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

be/src/vec/exprs/vexpr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class VExpr {
120120

121121
// execute current expr with inverted index to filter block. Given a roaring bitmap of match rows
122122
virtual Status evaluate_inverted_index(VExprContext* context, uint32_t segment_num_rows) {
123-
return Status::NotSupported("Not supported execute_with_inverted_index");
123+
return Status::OK();
124124
}
125125

126126
Status _evaluate_inverted_index(VExprContext* context, const FunctionBasePtr& function,

be/src/vec/functions/function.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ class IFunctionBase {
195195
const std::vector<vectorized::IndexFieldNameAndTypePair>& data_type_with_names,
196196
std::vector<segment_v2::InvertedIndexIterator*> iterators, uint32_t num_rows,
197197
segment_v2::InvertedIndexResultBitmap& bitmap_result) const {
198-
return Status::NotSupported("evaluate_inverted_index is not supported in function: ",
199-
get_name());
198+
return Status::OK();
200199
}
201200

202201
/// Do cleaning work when function is finished, i.e., release state variables in the

0 commit comments

Comments
 (0)