[FEAT MERGE] Support external table

Co-authored-by: jingtaoye35 <1255153887@qq.com>
This commit is contained in:
wjhh2008
2023-04-29 15:11:49 +00:00
committed by ob-robot
parent ecb74a122c
commit 09ed904b58
164 changed files with 8074 additions and 667 deletions

View File

@ -4004,6 +4004,16 @@ int ObLogicalOperator::allocate_granule_nodes_above(AllocGIContext &ctx)
gi_op->add_flag(GI_SLAVE_MAPPING);
}
if (OB_SUCC(ret) && LOG_TABLE_SCAN == get_type()
&& EXTERNAL_TABLE == static_cast<ObLogTableScan *>(this)->get_table_type()) {
if (ctx.force_partition()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("external table do not support partition GI", K(ret));
} else {
gi_op->set_used_by_external_table();
}
}
if (OB_SUCC(ret)) {
if (OB_FAIL(gi_op->is_partition_gi(partition_granule))) {
LOG_WARN("failed judge partition granule", K(ret));