[fix](projections) Open the project expressions properly. (#13162)
In current 'ExecNode::open' function, the 'open(_projections)' is unreachable which might cause serious crashed. (#13150)
This commit is contained in:
@ -249,14 +249,13 @@ Status ExecNode::open(RuntimeState* state) {
|
||||
if (_vconjunct_ctx_ptr) {
|
||||
RETURN_IF_ERROR((*_vconjunct_ctx_ptr)->open(state));
|
||||
}
|
||||
RETURN_IF_ERROR(vectorized::VExpr::open(_projections, state));
|
||||
if (typeid(*this) != typeid(doris::vectorized::VOlapScanNode) &&
|
||||
typeid(*this) != typeid(doris::vectorized::NewOlapScanNode)) {
|
||||
return Expr::open(_conjunct_ctxs, state);
|
||||
} else {
|
||||
return Status::OK();
|
||||
}
|
||||
RETURN_IF_ERROR(Expr::open(_conjunct_ctxs, state));
|
||||
return vectorized::VExpr::open(_projections, state);
|
||||
}
|
||||
|
||||
Status ExecNode::reset(RuntimeState* state) {
|
||||
|
||||
Reference in New Issue
Block a user