fix osg bugs

This commit is contained in:
Larry955
2023-05-06 10:38:37 +00:00
committed by ob-robot
parent fab24a1afb
commit 03695f6cb2
13 changed files with 231 additions and 230 deletions

View File

@ -540,9 +540,14 @@ int ObLoadDataResolver::resolve_hints(const ParseNode &node)
}
break;
}
case T_NO_GATHER_OPTIMIZER_STATISTICS: {
if (OB_FAIL(stmt_hints.set_value(ObLoadDataHint::NO_GATHER_OPTIMIZER_STATISTICS, 1))) {
LOG_WARN("fail to set gather optimizer statistics", K(ret));
}
break;
}
default:
ret = OB_ERR_HINT_UNKNOWN;
LOG_WARN("Unknown hint", "hint_name", get_type_name(hint_node->type_));
LOG_WARN("Unused hint", "hint_name", get_type_name(hint_node->type_));
break;
}
}

View File

@ -185,6 +185,7 @@ public:
NEED_SORT,
ERROR_ROWS,
GATHER_OPTIMIZER_STATISTICS,
NO_GATHER_OPTIMIZER_STATISTICS,
TOTAL_INT_ITEM
};
enum StringHintItem {