fix sql_statistics bug
This commit is contained in:
@ -528,6 +528,18 @@ int ObLoadDataResolver::resolve_hints(const ParseNode &node)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case T_APPEND: {
|
||||
if (OB_FAIL(stmt_hints.set_value(ObLoadDataHint::APPEND, 1))) {
|
||||
LOG_WARN("fail to set append", K(ret));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case T_GATHER_OPTIMIZER_STATISTICS: {
|
||||
if (OB_FAIL(stmt_hints.set_value(ObLoadDataHint::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_));
|
||||
|
||||
@ -180,9 +180,11 @@ public:
|
||||
PARALLEL_THREADS = 0, //parallel threads on the host server, for parsing and calc partition
|
||||
BATCH_SIZE,
|
||||
QUERY_TIMEOUT,
|
||||
APPEND,
|
||||
ENABLE_DIRECT,
|
||||
NEED_SORT,
|
||||
ERROR_ROWS,
|
||||
GATHER_OPTIMIZER_STATISTICS,
|
||||
TOTAL_INT_ITEM
|
||||
};
|
||||
enum StringHintItem {
|
||||
|
||||
Reference in New Issue
Block a user