fix bug that parent stmt's conditions cann't use for null reject when stmt has windown func

This commit is contained in:
jingtaoye35
2024-06-17 21:07:40 +00:00
committed by ob-robot
parent fd09ea86f1
commit 32d6420b97

View File

@ -652,6 +652,9 @@ int ObTransformEliminateOuterJoin::get_extra_condition_from_parent(ObIArray<ObPa
stmt->has_sequence() || stmt->has_sequence() ||
has_rownum) { has_rownum) {
// do nothing // do nothing
} else if (stmt->is_select_stmt() &&
!static_cast<const ObSelectStmt*>(stmt)->get_window_func_exprs().empty()) {
// do nothing
} else if (OB_ISNULL(parent_stmt = parent_stmts.at(parent_stmts.count() - 1).stmt_)) { } else if (OB_ISNULL(parent_stmt = parent_stmts.at(parent_stmts.count() - 1).stmt_)) {
ret = OB_ERR_UNEXPECTED; ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret)); LOG_WARN("get unexpected null", K(ret));