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 562a3d901e
commit 336f83b03e
1 changed files with 9 additions and 0 deletions

View File

@ -159,4 +159,13 @@ public class CorrelatedTableGroup extends AbstractTableGroup {
public Consumer<Predicate> getJoinPredicateConsumer() {
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;
}
}