HHH-16537 Check correlated too for compatible joined group

This commit is contained in:
Marco Belladelli 2023-06-13 11:22:04 +02:00
parent 55ebd337e7
commit 7857ce14ef
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35
1 changed files with 9 additions and 0 deletions

View File

@ -159,4 +159,13 @@ public class CorrelatedTableGroup extends AbstractTableGroup {
public Consumer<Predicate> getJoinPredicateConsumer() { public Consumer<Predicate> getJoinPredicateConsumer() {
return joinPredicateConsumer; return joinPredicateConsumer;
} }
@Override
public TableGroup findCompatibleJoinedGroup(TableGroupJoinProducer joinProducer, SqlAstJoinType requestedJoinType) {
final TableGroup compatibleJoinedGroup = super.findCompatibleJoinedGroup( joinProducer, requestedJoinType );
return compatibleJoinedGroup == null ? correlatedTableGroup.findCompatibleJoinedGroup(
joinProducer,
requestedJoinType
) : compatibleJoinedGroup;
}
} }