[ARRAY] array sort vec2.0 bugfix

This commit is contained in:
helloamateur 2024-12-10 17:15:46 +00:00 committed by ob-robot
parent 2e64e7adcb
commit dff811352c

View File

@ -310,6 +310,9 @@ int ObPrefixSortVecImpl<Compare, Store_Row, has_addon>::fetch_rows_batch()
ObExpr *e = all_exprs_.at(i);
if (OB_FAIL(e->eval_vector(*eval_ctx_, *brs_))) {
SQL_ENG_LOG(WARN, "eval batch failed", K(ret));
} else if (e->is_nested_expr() && !is_uniform_format(e->get_format(*eval_ctx_)) &&
OB_FAIL(e->nested_cast_to_uniform(brs_->size_, *eval_ctx_, brs_->skip_))) {
SQL_ENG_LOG(WARN, "failed to cast nested expr to uniform", K(ret));
} else {
e->get_eval_info(*eval_ctx_).projected_ = true;
}