fix partition list compat bug

This commit is contained in:
Larry955
2023-03-06 08:11:22 +00:00
committed by ob-robot
parent ee44943313
commit a401951741
4 changed files with 19 additions and 1 deletions

View File

@ -283,7 +283,9 @@ int ObPartitionExecutorUtils::cast_list_expr_to_obj(
LOG_WARN("get unexpected expr", K(ret), K(value_expr));
} else if (ObMaxType == value_expr->get_data_type()) {
++default_count;
if (row_expr->get_param_count() != 1) {
if (i != list_values_exprs.count() - 1) {
ret = OB_ERR_DEFAULT_NOT_AT_LAST_IN_LIST_PART;
} else if (row_expr->get_param_count() != 1) {
ret = OB_ERR_MULTIPLE_DEF_CONST_IN_LIST_PART;
} else if (default_count > 1) {
ret = OB_ERR_MULTIPLE_DEF_CONST_IN_LIST_PART;