Fix mview auto complete refresh parallel

This commit is contained in:
obdev
2024-02-08 10:08:01 +00:00
committed by ob-robot
parent b915bb10a0
commit f5bb32e3bf
14 changed files with 69 additions and 42 deletions

View File

@ -340,6 +340,13 @@ int ObCreateViewResolver::resolve(const ParseNode &parse_tree)
container_table_schema.set_mv_container_table(IS_MV_CONTAINER_TABLE);
}
}
if (OB_SUCC(ret)) {
if (OB_FAIL(resolve_hints(parse_tree.children_[HINT_NODE], *stmt, container_table_schema))) {
LOG_WARN("resolve hints failed", K(ret));
} else {
mv_ainfo.mv_refresh_info_.parallel_ = stmt->get_parallelism();
}
}
if (OB_SUCC(ret)) {
ObViewSchema &view_schema = table_schema.get_view_schema();
if (OB_FAIL(resolve_mv_refresh_info(parse_tree.children_[MVIEW_NODE], mv_ainfo.mv_refresh_info_))) {

View File

@ -44,7 +44,8 @@ class ObCreateViewResolver : public ObCreateTableResolverBase
static const int64_t MVIEW_NODE = 8;
static const int64_t PARTITION_NODE = 9;
static const int64_t TABLE_OPTION_NODE = 10;
static const int64_t ROOT_NUM_CHILD = 11;
static const int64_t HINT_NODE = 11;
static const int64_t ROOT_NUM_CHILD = 12;
public:
explicit ObCreateViewResolver(ObResolverParams &params);