[FEAT MERGE] patch 423 sql compatible features to 432
Co-authored-by: akaError <lzg020616@163.com> Co-authored-by: JinmaoLi <ljm.csmaster@gmail.com> Co-authored-by: qingzhu521 <q15000557748@gmail.com>
This commit is contained in:
@ -175,6 +175,7 @@ int ObTransformAggrSubquery::transform_with_aggregation_first(ObDMLStmt *&stmt,
|
||||
ObSEArray<ObRawExpr *, 4> exprs;
|
||||
const bool with_vector_assgin = true;
|
||||
const ObQueryHint* query_hint = nullptr;
|
||||
bool is_hsfu = false;
|
||||
OPT_TRACE("try aggregation first");
|
||||
if (OB_ISNULL(stmt) || OB_ISNULL(query_hint = stmt->get_stmt_hint().query_hint_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
@ -183,6 +184,10 @@ int ObTransformAggrSubquery::transform_with_aggregation_first(ObDMLStmt *&stmt,
|
||||
LOG_WARN("invalid params", K(ret), K(stmt));
|
||||
} else if (stmt->is_hierarchical_query() || stmt->is_set_stmt() || !stmt->is_sel_del_upd()) {
|
||||
OPT_TRACE("hierarchical/set/insert/merge query can not transform");
|
||||
} else if (OB_FAIL(stmt->is_hierarchical_for_update(is_hsfu))) {
|
||||
LOG_WARN("failed to check hierarchical for update", K(ret));
|
||||
} else if (is_hsfu) {
|
||||
OPT_TRACE("hierarchical for update query can not transform");
|
||||
} else if (OB_FAIL(exprs.assign(stmt->get_condition_exprs()))) {
|
||||
LOG_WARN("failed to assign conditions", K(ret));
|
||||
} else if (OB_FAIL(ObTransformUtils::get_post_join_exprs(stmt, exprs, with_vector_assgin))) {
|
||||
|
||||
Reference in New Issue
Block a user