[FEAT MERGE] materialized view

Co-authored-by: suz-yang <suz.yang@foxmail.com>
Co-authored-by: leftgeek <1094669802@qq.com>
Co-authored-by: chimyue <chimyue@gmail.com>
This commit is contained in:
coolfishchen
2023-12-14 07:42:51 +00:00
committed by ob-robot
parent 0f946e55fb
commit f7cd32be94
257 changed files with 35700 additions and 4337 deletions

View File

@ -663,7 +663,7 @@ int ObQueryHint::print_stmt_hint(PlanText &plan_text, const ObDMLStmt &stmt,
const int64_t stmt_id = stmt.get_stmt_id();
if (OB_FAIL(print_qb_name_hint(plan_text, stmt_id))) {
LOG_WARN("failed to print qb_name hint", K(ret));
} else if (stmt_id == outline_stmt_id_) {
} else if (OB_INVALID_STMT_ID != stmt_id && stmt_id == outline_stmt_id_) {
// Outline data resolved from this stmt, print outline data here.
if (OB_FAIL(print_outline_data(plan_text))) {
LOG_WARN("failed to print outline data", K(ret));
@ -737,7 +737,9 @@ int ObQueryHint::print_outline_data(PlanText &plan_text) const
int ObQueryHint::print_qb_name_hint(PlanText &plan_text, int64_t stmt_id) const
{
int ret = OB_SUCCESS;
if (OB_UNLIKELY(stmt_id < 0 || stmt_id >= stmt_id_map_.count())) {
if (OB_INVALID_STMT_ID == stmt_id) {
/* do nothing, this stmt is create for print stmt for mv */
} else if (OB_UNLIKELY(stmt_id < 0 || stmt_id >= stmt_id_map_.count())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected stmt id", K(ret), K(stmt_id), K(stmt_id_map_.count()));
} else if (stmt_id_map_.at(stmt_id).is_from_hint_) {