Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 265cb45

Browse files
committed
Fix typo in determining if sub-select could be transformed
1 parent 5ed21f1 commit 265cb45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/optimizer/query_to_operator_transformer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ bool QueryToOperatorTransformer::IsSupportedSubSelect(
448448
return false;
449449
}
450450
// Check if in the form of
451-
// "outer_relation.a = (expr only columns in inner relation)"
452-
if (!((pred->GetChild(0)->GetDepth() == op->depth &&
451+
// "outer_relation.a = (expr with only columns in inner relation)"
452+
if (!((pred->GetChild(1)->GetDepth() == op->depth &&
453453
pred->GetChild(0)->GetExpressionType() ==
454454
ExpressionType::VALUE_TUPLE) ||
455-
(pred->GetChild(1)->GetDepth() == op->depth &&
455+
(pred->GetChild(0)->GetDepth() == op->depth &&
456456
pred->GetChild(1)->GetExpressionType() ==
457457
ExpressionType::VALUE_TUPLE))) {
458458
return false;

0 commit comments

Comments
 (0)