batch cherry pick bugfix codes

This commit is contained in:
obdev
2021-07-12 19:24:43 +08:00
committed by wangzelin.wzl
parent 9c7663609e
commit 4de3feb72f
12 changed files with 77 additions and 222 deletions

View File

@ -249,6 +249,14 @@ int ObLogSubPlanScan::allocate_exchange_post(AllocExchContext* ctx)
} else if (OB_FAIL(update_weak_part_exprs(ctx))) {
LOG_WARN("failed to update weak part exprs", K(ret));
} else {
ObShardingInfo &child_sharding = child->get_sharding_info();
if (child_sharding.get_partition_keys().count() != sharding_info_.get_partition_keys().count() ||
child_sharding.get_sub_partition_keys().count() != sharding_info_.get_sub_partition_keys().count() ||
child_sharding.get_partition_func().count() != sharding_info_.get_partition_func().count()) {
sharding_info_.get_partition_keys().reset();
sharding_info_.get_sub_partition_keys().reset();
sharding_info_.get_partition_func().reset();
}
LOG_TRACE("subplan scan sharding info", K(sharding_info_));
}
return ret;