fix some optimizer bugs

This commit is contained in:
chimyue
2023-06-07 03:12:37 +00:00
committed by ob-robot
parent 01f144ffc2
commit ec1838ed4d
6 changed files with 25 additions and 17 deletions

View File

@ -513,9 +513,8 @@ int ObLoadDataResolver::resolve_hints(const ParseNode &node)
}
case T_PARALLEL: {
if (1 != hint_node->num_child_) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("stmt parallel degree node should have 1 child",
K(ret), K(hint_node->num_child_));
/* ignore parallel(auto) and parallel(manual)*/
LOG_WARN("Unused parallel hint");
} else if (OB_ISNULL(hint_node->children_[0])) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("child of stmt parallel degree node should not be NULL", K(ret));