fix illegal stmt caused by deep copy of sharding condition which contains query ref expr

This commit is contained in:
obdev
2023-08-04 08:48:25 +00:00
committed by ob-robot
parent bd5ae50a72
commit f87b31f4e7
4 changed files with 9 additions and 8 deletions

View File

@ -3174,6 +3174,8 @@ int ObTransformPredicateMoveAround::create_equal_exprs_for_insert(ObDelUpdStmt *
}
if (OB_FAIL(ret)) {
//do nothing
} else if (source_exprs.at(i)->has_flag(CNT_SUB_QUERY)) {
//do nothing
} else if (!ObOptimizerUtil::find_item(part_exprs, target_exprs.at(i))) {
// do nothing
} else if (!is_not_null) {