提交 4736d1b2 编写于 作者: X xianyu-w 提交者: ob-robot

[CP] Fix a join elimination bug

上级 de29d97b
......@@ -417,6 +417,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*/
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册