[FEAT MERGE]4_1_sql_feature

Co-authored-by: leslieyuchen <leslieyuchen@gmail.com>
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
obdev
2023-01-28 16:01:26 +08:00
committed by ob-robot
parent 3080f2b66f
commit 2d19a9d8f5
846 changed files with 161957 additions and 116661 deletions

View File

@ -118,7 +118,9 @@ ObPhysicalPlan::ObPhysicalPlan(MemoryContext &mem_context /* = CURRENT_CONTEXT *
ddl_execution_id_(-1),
ddl_task_id_(0),
is_packed_(false),
has_instead_of_trigger_(false)
has_instead_of_trigger_(false),
min_cluster_version_(GET_MIN_CLUSTER_VERSION()),
need_record_plan_info_(false)
{
}
@ -202,6 +204,7 @@ void ObPhysicalPlan::reset()
has_instead_of_trigger_ = false;
stat_.expected_worker_map_.destroy();
stat_.minimal_worker_map_.destroy();
need_record_plan_info_ = false;
}
void ObPhysicalPlan::destroy()
@ -228,6 +231,7 @@ int ObPhysicalPlan::copy_common_info(ObPhysicalPlan &src)
set_literal_stmt_type(src.get_literal_stmt_type());
//copy plan_id/hint/privs
object_id_ = src.object_id_;
min_cluster_version_ = src.min_cluster_version_;
if (OB_FAIL(set_phy_plan_hint(src.get_phy_plan_hint()))) {
LOG_WARN("Failed to copy query hint", K(ret));
} else if (OB_FAIL(set_stmt_need_privs(src.get_stmt_need_privs()))) {
@ -743,7 +747,9 @@ OB_SERIALIZE_MEMBER(ObPhysicalPlan,
is_plain_insert_,
ddl_execution_id_,
ddl_task_id_,
stat_.plan_id_);
stat_.plan_id_,
min_cluster_version_,
need_record_plan_info_);
int ObPhysicalPlan::set_table_locations(const ObTablePartitionInfoArray &infos,
ObSchemaGetterGuard &schema_guard)