[feature-wip](datev2) Support to use datev2 as partition column (#11618)

This commit is contained in:
Gabriel
2022-08-12 11:54:01 +08:00
committed by GitHub
parent b36680796f
commit 7d97aa194b
16 changed files with 134 additions and 86 deletions

View File

@ -213,7 +213,9 @@ Status ExecNode::prepare(RuntimeState* state) {
if (_vconjunct_ctx_ptr) {
RETURN_IF_ERROR((*_vconjunct_ctx_ptr)->prepare(state, _row_descriptor));
}
RETURN_IF_ERROR(Expr::prepare(_conjunct_ctxs, state, _row_descriptor));
if (typeid(*this) != typeid(doris::vectorized::VOlapScanNode)) {
RETURN_IF_ERROR(Expr::prepare(_conjunct_ctxs, state, _row_descriptor));
}
// TODO(zc):
// AddExprCtxsToFree(_conjunct_ctxs);
@ -229,7 +231,11 @@ Status ExecNode::open(RuntimeState* state) {
if (_vconjunct_ctx_ptr) {
RETURN_IF_ERROR((*_vconjunct_ctx_ptr)->open(state));
}
return Expr::open(_conjunct_ctxs, state);
if (typeid(*this) != typeid(doris::vectorized::VOlapScanNode)) {
return Expr::open(_conjunct_ctxs, state);
} else {
return Status::OK();
}
}
Status ExecNode::reset(RuntimeState* state) {
@ -267,7 +273,9 @@ Status ExecNode::close(RuntimeState* state) {
}
if (_vconjunct_ctx_ptr) (*_vconjunct_ctx_ptr)->close(state);
Expr::close(_conjunct_ctxs, state);
if (typeid(*this) != typeid(doris::vectorized::VOlapScanNode)) {
Expr::close(_conjunct_ctxs, state);
}
if (_buffer_pool_client.is_registered()) {
VLOG_FILE << _id << " returning reservation " << _resource_profile.min_reservation;