[CP] use optimizer_features_enable system variable and optimizer_features_enable hint to control optimizer behaviors
This commit is contained in:
@ -687,7 +687,8 @@ public:
|
||||
res_map_rule_param_idx_(common::OB_INVALID_INDEX),
|
||||
root_stmt_(NULL),
|
||||
udf_has_select_stmt_(false),
|
||||
has_pl_udf_(false)
|
||||
has_pl_udf_(false),
|
||||
optimizer_features_enable_version_(0)
|
||||
{
|
||||
}
|
||||
TO_STRING_KV(N_PARAM_NUM, question_marks_count_,
|
||||
@ -733,6 +734,7 @@ public:
|
||||
root_stmt_ = NULL;
|
||||
udf_has_select_stmt_ = false;
|
||||
has_pl_udf_ = false;
|
||||
optimizer_features_enable_version_ = 0;
|
||||
}
|
||||
|
||||
int64_t get_new_stmt_id() { return stmt_count_++; }
|
||||
@ -817,6 +819,7 @@ public:
|
||||
ObDMLStmt *root_stmt_;
|
||||
bool udf_has_select_stmt_; // udf has select stmt, not contain other dml stmt
|
||||
bool has_pl_udf_; // used to mark sql contain pl udf
|
||||
uint64_t optimizer_features_enable_version_;
|
||||
};
|
||||
} /* ns sql*/
|
||||
} /* ns oceanbase */
|
||||
|
||||
Reference in New Issue
Block a user