[CP] fix: fix the core induced by spf batch rescan

This commit is contained in:
obdev
2023-12-14 15:17:31 +00:00
committed by ant-ob-hengtang
parent e250ff7f6d
commit 07edb2482e
8 changed files with 25 additions and 1 deletions

View File

@ -537,6 +537,15 @@ int ObLogSubPlanFilter::check_and_set_das_group_rescan()
LOG_WARN("unexpected null", K(ret));
} else if (OB_FAIL(session_info->get_nlj_batching_enabled(enable_das_group_rescan_))) {
LOG_WARN("failed to get enable batch variable", K(ret));
} else {
omt::ObTenantConfigGuard tenant_config(TENANT_CONF(session_info->get_effective_tenant_id()));
if (tenant_config.is_valid()) {
enable_das_group_rescan_ = tenant_config->_enable_spf_batch_rescan;
LOG_TRACE("trace disable hash groupby in second stage for three-stage",
K(enable_das_group_rescan_));
} else {
enable_das_group_rescan_ = false;
}
}
// check use batch
for (int64_t i = 1; OB_SUCC(ret) && enable_das_group_rescan_ && i < get_num_of_child(); i++) {