fix subpartition template compat bug

This commit is contained in:
Larry955
2023-05-05 14:08:20 +00:00
committed by ob-robot
parent f64c60e046
commit c342e3ed87
4 changed files with 20 additions and 3 deletions

View File

@ -9814,7 +9814,7 @@ int ObDDLResolver::resolve_hash_partition_elements(ObPartitionedStmt *stmt,
LOG_WARN("failed to add partition", K(ret));
} else if (stmt->use_def_sub_part() &&
OB_NOT_NULL(element_node->children_[ELEMENT_SUBPARTITION_NODE])) {
ret = OB_ERR_UNEXPECTED;
ret = OB_INVALID_SUB_PARTITION_TYPE;
LOG_WARN("individual subpartition with sub part template", K(ret));
} else if (!stmt->use_def_sub_part()) {
// resolve non template