[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -62,14 +62,12 @@ private:
// @brief Get all the group by exprs, rollup exprs and their directions.
int get_groupby_rollup_exprs(const ObLogicalOperator *op,
common::ObIArray<ObRawExpr *> &reduce_exprs,
common::ObIArray<ObRawExpr *> &group_by_exprs,
common::ObIArray<ObRawExpr *> &rollup_exprs,
common::ObIArray<ObOrderDirection> &group_directions,
common::ObIArray<ObOrderDirection> &rollup_directions);
int candi_allocate_normal_group_by(const ObIArray<ObRawExpr*> &reduce_exprs,
const ObIArray<ObRawExpr*> &group_by_exprs,
int candi_allocate_normal_group_by(const ObIArray<ObRawExpr*> &group_by_exprs,
const ObIArray<ObOrderDirection> &group_directions,
const ObIArray<ObRawExpr*> &rollup_exprs,
const ObIArray<ObOrderDirection> &rollup_directions,
@ -82,8 +80,7 @@ private:
const bool ignore_hint,
bool &use_hash_valid,
bool &use_merge_valid);
int candi_allocate_normal_group_by(const ObIArray<ObRawExpr*> &reduce_exprs,
const ObIArray<ObRawExpr*> &group_by_exprs,
int candi_allocate_normal_group_by(const ObIArray<ObRawExpr*> &group_by_exprs,
const ObIArray<ObOrderDirection> &group_directions,
const ObIArray<ObRawExpr*> &rollup_exprs,
const ObIArray<ObOrderDirection> &rollup_directions,
@ -94,8 +91,7 @@ private:
const bool ignore_hint,
ObIArray<CandidatePlan> &groupby_plans);
int candi_allocate_three_stage_group_by(const ObIArray<ObRawExpr*> &reduce_exprs,
const ObIArray<ObRawExpr*> &group_by_exprs,
int candi_allocate_three_stage_group_by(const ObIArray<ObRawExpr*> &group_by_exprs,
const ObIArray<ObOrderDirection> &group_directions,
const ObIArray<ObRawExpr*> &rollup_exprs,
const ObIArray<ObOrderDirection> &rollup_directions,
@ -105,8 +101,7 @@ private:
GroupingOpHelper &groupby_helper,
ObIArray<CandidatePlan> &groupby_plans);
int create_hash_group_plan(const ObIArray<ObRawExpr*> &reduce_exprs,
const ObIArray<ObRawExpr*> &group_by_exprs,
int create_hash_group_plan(const ObIArray<ObRawExpr*> &group_by_exprs,
const ObIArray<ObRawExpr*> &rollup_exprs,
const ObIArray<ObAggFunRawExpr*> &aggr_items,
const ObIArray<ObRawExpr*> &having_exprs,
@ -133,7 +128,7 @@ private:
int64_t topk_precision);
int should_create_rollup_pushdown_plan(ObLogicalOperator *top,
const ObIArray<ObRawExpr *> &reduce_exprs,
const ObIArray<ObRawExpr *> &groupby_exprs,
const ObIArray<ObRawExpr *> &rollup_exprs,
GroupingOpHelper &groupby_helper,
bool &is_needed);
@ -145,8 +140,7 @@ private:
GroupingOpHelper &groupby_helper,
ObLogicalOperator *&top);
int create_merge_group_plan(const ObIArray<ObRawExpr*> &reduce_exprs,
const ObIArray<ObRawExpr*> &group_by_exprs,
int create_merge_group_plan(const ObIArray<ObRawExpr*> &group_by_exprs,
const ObIArray<ObOrderDirection> &group_directions,
const ObIArray<ObRawExpr*> &rollup_exprs,
const ObIArray<ObOrderDirection> &rollup_directions,
@ -174,17 +168,14 @@ private:
// @brief Get all the distinct exprs
int get_distinct_exprs(const ObLogicalOperator *top,
common::ObIArray <ObRawExpr *> &reduce_exprs,
common::ObIArray <ObRawExpr *> &distinct_exprs);
int create_hash_distinct_plan(ObLogicalOperator *&top,
GroupingOpHelper &distinct_helper,
ObIArray<ObRawExpr*> &reduce_exprs,
ObIArray<ObRawExpr*> &distinct_exprs);
int create_merge_distinct_plan(ObLogicalOperator *&top,
GroupingOpHelper &distinct_helper,
ObIArray<ObRawExpr*> &reduce_exprs,
ObIArray<ObRawExpr*> &distinct_exprs,
ObIArray<ObOrderDirection> &directions,
bool &is_plan_valid,
@ -245,6 +236,8 @@ private:
const bool ignore_hint,
ObLogicalOperator *&top);
int adjust_recursive_cte_plan(ObIArray<ObLogicalOperator*> &child_ops);
int allocate_recursive_union_all_as_top(ObLogicalOperator *left_child,
ObLogicalOperator *right_child,
DistAlgo dist_set_method,
@ -254,11 +247,6 @@ private:
int get_pure_set_exprs(ObIArray<ObRawExpr*> &pure_set_exprs);
int get_allowed_branch_order(const bool ignore_hint,
const ObSelectStmt::SetOperator set_op,
bool &no_swap,
bool &swap);
/**
* @brief create_hash_set
* create hash-based set operation