Fix sql vectorization2.0 self testing framework issue

This commit is contained in:
obdev
2024-04-03 08:45:13 +00:00
committed by ob-robot
parent f0af267264
commit 84fa730f62
2 changed files with 2 additions and 1 deletions

View File

@ -484,6 +484,7 @@ int TestOpEngine::generate_physical_plan(ObLogPlan *log_plan, ObPhysicalPlan &ph
// So we need set here to support rich_format
ObCodeGenerator code_gen(false /*use_jit*/, CLUSTER_VERSION_4_3_0_0, &(pctx->get_datum_param_store()));
log_plan->get_optimizer_context().get_session_info()->sys_vars_cache_.set_enable_rich_vector_format(enable_rich_format);
log_plan->get_optimizer_context().get_session_info()->init_use_rich_format();
phy_plan.set_use_rich_format(enable_rich_format);
if (OB_FAIL(do_code_generate(*log_plan, code_gen, phy_plan))) {

View File

@ -180,7 +180,7 @@ TestSqlUtils::TestSqlUtils()
auto& cluster_version = ObClusterVersion::get_instance();
cluster_version.init(&common::ObServerConfig::get_instance(), &oceanbase::omt::ObTenantConfigMgr::get_instance());
oceanbase::omt::ObTenantConfigMgr::get_instance().add_tenant_config(sys_tenant_id_);
cluster_version.refresh_cluster_version("4.2.0.0");
cluster_version.refresh_cluster_version("4.3.0.0");
ObServer &observer = ObServer::get_instance();
int ret = OB_SUCCESS;