fix view merge bug with full join

This commit is contained in:
yinyj17
2024-04-16 20:15:59 +00:00
committed by ob-robot
parent c85ca5f1d1
commit 84628fdb58

View File

@ -851,7 +851,8 @@ int ObTransformViewMerge::find_not_null_column_with_condition(
for (int64_t i = 0; OB_SUCC(ret) && !find && i < old_column_exprs.count(); ++i) {
bool has_null_reject = false;
//首先找到null reject的select expr
if (OB_FAIL(ObTransformUtils::has_null_reject_condition(join_conditions,
if (FULL_OUTER_JOIN != helper.parent_table->joined_type_ &&
OB_FAIL(ObTransformUtils::has_null_reject_condition(join_conditions,
old_column_exprs.at(i),
has_null_reject))) {
LOG_WARN("failed to check has null reject condition", K(ret));