fix join reorder bug
This commit is contained in:
parent
8916aa3e85
commit
94dc17a7f8
@ -1827,7 +1827,9 @@ int ObLogPlan::check_join_info(const ObRelIds &left,
|
|||||||
int ret = OB_SUCCESS;
|
int ret = OB_SUCCESS;
|
||||||
ObSqlBitSet<> table_ids;
|
ObSqlBitSet<> table_ids;
|
||||||
is_connected = false;
|
is_connected = false;
|
||||||
if (OB_FAIL(table_ids.except(left, right))) {
|
if (!left.overlap(right)) {
|
||||||
|
//do nothing
|
||||||
|
} else if (OB_FAIL(table_ids.except(left, right))) {
|
||||||
LOG_WARN("failed to cal except for rel ids", K(ret));
|
LOG_WARN("failed to cal except for rel ids", K(ret));
|
||||||
} else if (table_ids.is_empty()) {
|
} else if (table_ids.is_empty()) {
|
||||||
is_connected = true;
|
is_connected = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user