[CP] [CP] insert into select use distribute insert when partition pruning get empty partition

This commit is contained in:
obdev
2023-07-06 13:42:16 +00:00
committed by ob-robot
parent f3c97ed0c9
commit 1990779a97
5 changed files with 18 additions and 10 deletions

View File

@ -3630,6 +3630,8 @@ int ObLogicalOperator::explain_print_partitions(ObTablePartitionInfo &table_part
|| OB_ISNULL(stmt = get_plan()->get_stmt())) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("NULL pointer error", K(get_plan()), K(opt_ctx), K(schema_guard), K(ret));
} else if (partitions.count() == 0) {
// do nothing
} else if (OB_FAIL(schema_guard->get_table_schema(ref_table_id, table_schema))) {
LOG_WARN("fail to get index schema", K(ret), K(ref_table_id), K(table_id));
}