Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -31,14 +31,12 @@ namespace sql
: ObLogicalOperator(plan),
algo_(WinDistAlgo::WIN_DIST_INVALID),
use_hash_sort_(false),
use_topn_sort_(false),
single_part_parallel_(false),
range_dist_parallel_(false),
role_type_(WindowFunctionRoleType::NORMAL),
rd_sort_keys_cnt_(0),
rd_pby_sort_cnt_(0),
wf_aggr_status_expr_(NULL),
origin_sort_card_(0.0)
wf_aggr_status_expr_(NULL)
{}
virtual ~ObLogWindowFunction() {}
virtual int get_explain_name_internal(char *buf,
@ -55,8 +53,6 @@ namespace sql
virtual int est_cost() override;
virtual int est_width() override;
virtual int do_re_est_cost(EstimateCostInfo &param, double &card, double &op_cost, double &cost) override;
int get_child_est_info(double &child_card, double &child_width, double &selectivity);
int inner_est_cost(double child_card, double child_width, double &op_cost);
virtual int get_op_exprs(ObIArray<ObRawExpr*> &all_exprs) override;
virtual int is_my_fixed_expr(const ObRawExpr *expr, bool &is_fixed) override;
virtual int compute_op_ordering() override;
@ -102,10 +98,6 @@ namespace sql
WinDistAlgo get_win_dist_algo() const { return algo_; }
void set_use_hash_sort(const bool use_hash_sort) { use_hash_sort_ = use_hash_sort; }
bool get_use_hash_sort() const { return use_hash_sort_; }
void set_use_topn_sort(const bool use_topn_sort) { use_topn_sort_ = use_topn_sort; }
bool get_use_topn_sort() const { return use_topn_sort_; }
void set_origin_sort_card(double origin_sort_card) { origin_sort_card_ = origin_sort_card; }
double get_origin_sort_card() { return origin_sort_card_; }
virtual int get_plan_item_info(PlanText &plan_text,
ObSqlPlanItem &plan_item) override;
virtual int print_outline_data(PlanText &plan_text) override;
@ -119,7 +111,6 @@ namespace sql
// for print PQ_DISTRIBUTE_WINDOW hint outline
WinDistAlgo algo_;
bool use_hash_sort_;
bool use_topn_sort_;
// Single partition (no partition by) window function parallel process, need the PX COORD
// to collect the partial result and broadcast the final result to each worker.
@ -152,9 +143,6 @@ namespace sql
// for reporting window function adaptive pushdown
ObOpPseudoColumnRawExpr *wf_aggr_status_expr_;
common::ObSEArray<bool, 8, common::ModulePageAllocator, true> pushdown_info_;
//for est_cost when use topn sort
double origin_sort_card_;
};
}
}