Patch bug fixes to opensource branch.

This commit is contained in:
jz0
2021-08-19 17:53:21 +08:00
committed by wangzelin.wzl
parent 10799a599b
commit a0ff8aaa32
14 changed files with 524 additions and 765 deletions

View File

@ -43,8 +43,10 @@ int ObLogTempTableInsert::allocate_exchange_post(AllocExchContext* ctx)
LOG_WARN("get unexpected null", K(child), K(ret));
} else if (child->get_sharding_info().is_distributed()) {
sharding_info_.set_location_type(child->get_sharding_info().get_location_type());
} else {
ret = sharding_info_.copy_with_part_keys(child->get_sharding_info());
} else if (OB_FAIL(sharding_info_.copy_with_part_keys(child->get_sharding_info()))) {
LOG_WARN("failed to copy sharding info", K(ret));
} else if (sharding_info_.is_match_all()) {
sharding_info_.set_location_type(OB_TBL_LOCATION_LOCAL);
}
return ret;
}