HHH-16213 Avoid initializing lazy table group joins in AbstractSqlAstWalker
This commit is contained in:
parent
7c832c024c
commit
f9bc29f484
|
@ -434,7 +434,12 @@ public class AbstractSqlAstWalker implements SqlAstWalker {
|
|||
|
||||
@Override
|
||||
public void visitTableGroupJoin(TableGroupJoin tableGroupJoin) {
|
||||
tableGroupJoin.getJoinedGroup().accept( this );
|
||||
final TableGroup joinedGroup = tableGroupJoin.getJoinedGroup();
|
||||
if ( joinedGroup.isInitialized() ) {
|
||||
// Only process already initialized table groups to avoid
|
||||
// forced initialization of joined lazy table groups
|
||||
joinedGroup.accept( this );
|
||||
}
|
||||
if ( tableGroupJoin.getPredicate() != null ) {
|
||||
tableGroupJoin.getPredicate().accept( this );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue