Fix mview auto complete refresh parallel
This commit is contained in:
		@ -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_))) {
 | 
			
		||||
 | 
			
		||||
@ -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 ¶ms);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user