Unify the processing logic of PDML and regular DML

This commit is contained in:
leslieyuchen
2024-02-08 11:54:53 +00:00
committed by ob-robot
parent 84e929fe7b
commit 535924fba1
11 changed files with 94 additions and 197 deletions

View File

@ -264,8 +264,8 @@ int ObDelUpdLogPlan::check_table_rowkey_distinct(
if (OB_ISNULL(index_dml_info)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("index dml info is null", K(ret));
} else if (!use_pdml() && !index_dml_info->is_primary_index_) {
// for PDML, primary table & index table both need unique checker.
} else if (!index_dml_info->is_primary_index_) {
// only primary table need unique checker.
} else if (OB_FAIL(index_dml_info->get_rowkey_exprs(rowkey_exprs))) {
LOG_WARN("failed to get rowkey exprs", K(ret));
} else if (OB_FAIL(ObOptimizerUtil::is_exprs_unique(rowkey_exprs,