[FEAT MERGE]: online optimizer stats gather.

Co-authored-by: obdev <obdev@oceanbase.com>
This commit is contained in:
Monk-Liu
2023-01-28 13:54:38 +08:00
committed by ob-robot
parent 735401c8d7
commit 9484175163
74 changed files with 3416 additions and 85 deletions

View File

@ -363,7 +363,9 @@ ObLogicalOperator::ObLogicalOperator(ObLogPlan &plan)
parallel_(1),
server_cnt_(1),
need_late_materialization_(false),
op_exprs_()
op_exprs_(),
allocated_osg_(false)
{
}
@ -861,6 +863,14 @@ int ObLogicalOperator::compute_op_other_info()
}
}
}
for (int64_t i = 0; OB_SUCC(ret) && !allocated_osg_ && i < get_num_of_child(); i++) {
if (OB_ISNULL(get_child(i))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret));
} else {
allocated_osg_ |= get_child(i)->get_allocated_osg();
}
}
}
return ret;
}