Fix core at RCTE

This commit is contained in:
xianyu-w
2023-10-17 06:39:31 +00:00
committed by ob-robot
parent 4bc4349d20
commit 86d7a2b8d6
2 changed files with 31 additions and 9 deletions

View File

@ -6293,9 +6293,8 @@ int ObOptimizerUtil::try_add_cast_to_set_child_list(ObIAllocator *allocator,
if (OB_FAIL(ret)) {
} else if (is_mysql_recursive_union) {
if (left_type.is_null()) {
res_type.set_binary();
res_type.set_length(0);
res_type.set_collation_level(CS_LEVEL_IMPLICIT);
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected rcte type", K(ret), K(left_stmts));
} else {
res_type = left_type;
}