Fix a join elimination bug

This commit is contained in:
xianyu-w 2023-04-13 09:12:32 +00:00 committed by ob-robot
parent 4ba35a9508
commit 7b1f8e9db9

View File

@ -582,6 +582,9 @@ int ObTransformJoinElimination::create_missing_select_items(ObSelectStmt *source
LOG_WARN("failed to remove duplicated agg expr", K(ret));
} else if (OB_FAIL(source_stmt->add_select_item(*miss_select_items.at(i)))) {
LOG_WARN("failed to add select item", K(ret));
} else if (OB_FAIL(ObTransformUtils::extract_query_ref_expr(miss_select_items.at(i)->expr_,
source_stmt->get_subquery_exprs()))) {
LOG_WARN("failed to extract query ref exprs", K(ret));
} else { /*do nothing*/ }
}
}