[CP] fix: add defensive code for table api rowkey update

This commit is contained in:
obdev
2023-02-07 00:35:43 +08:00
committed by ob-robot
parent f981449258
commit 822aaaf7f2
2 changed files with 13 additions and 0 deletions

View File

@ -364,6 +364,9 @@ int ObTableCtx::adjust_properties()
LOG_WARN("fail to get column schema", K(ret), K(col_name));
} else if (is_get) {
// do nothing
} else if (col_schema->is_rowkey_column()) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("property should not be rowkey column", K(ret), K(prop_names), K(i));
} else if (OB_FAIL(adjust_column(*col_schema, prop_obj))) {
LOG_WARN("fail to adjust column", K(ret), K(prop_obj));
}