Chen768959 commented on code in PR #52892:
URL: https://github.com/apache/doris/pull/52892#discussion_r2195686694
##########
be/src/vec/exprs/vexpr.cpp:
##########
@@ -722,23 +735,41 @@ Status VExpr::_evaluate_inverted_index(VExprContext*
context, const FunctionBase
}
}
+ auto result_bitmap = segment_v2::InvertedIndexResultBitmap();
+ auto set_result = [&]() {
+ if (!result_bitmap.is_empty()) {
+ index_context->set_inverted_index_result_for_expr(this,
result_bitmap);
+ for (int column_id : column_ids) {
+ index_context->set_true_for_inverted_index_status(this,
column_id);
+ }
+ }
+ };
+
+ if (!variant_column_exist) {
Review Comment:
At first, I didn't account for missing regular fields either. After testing,
I found that there's still that extra 2-second delay when regular fields don't
exist. Let me see if there's a more general fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]