Skip to content

Commit

Permalink
Merge pull request #295 from LiUSemWeb/InVocabularyMappingContext_App…
Browse files Browse the repository at this point in the history
…lyUnaryJoinWhenPossible

Fix a small issue in function 'checkUnaryOpApplicableToUnionPlan'
  • Loading branch information
hartig authored May 2, 2023
2 parents f65cdf5 + aabb289 commit 4217005
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,18 +746,20 @@ public static boolean checkUnaryOpApplicableToUnionPlan( final PhysicalPlan unio
}

if ( subRootOp instanceof PhysicalOpLocalToGlobal ){
if ( !( subPlan.getSubPlan(0) instanceof PhysicalOpRequest || subPlan.getSubPlan(0) instanceof PhysicalOpFilter) ){
final PhysicalPlan subSubPlan = subPlan.getSubPlan(0);
final PhysicalOperator subSubRootOp = subSubPlan.getRootOperator();
if ( !( subSubRootOp instanceof PhysicalOpRequest || subSubRootOp instanceof PhysicalOpFilter) ){
return false;
}
if ( subPlan.getSubPlan(0) instanceof PhysicalOpFilter ){
if ( !( subPlan.getSubPlan(0).getSubPlan(0) instanceof PhysicalOpRequest) ){
if ( subSubRootOp instanceof PhysicalOpFilter ){
if ( !( subSubPlan.getSubPlan(0).getRootOperator() instanceof PhysicalOpRequest) ){
return false;
}
}
}

if ( subRootOp instanceof PhysicalOpFilter ){
if ( !( subPlan.getSubPlan(0) instanceof PhysicalOpRequest) ){
if ( !( subPlan.getSubPlan(0).getRootOperator() instanceof PhysicalOpRequest) ){
return false;
}
}
Expand Down

0 comments on commit 4217005

Please sign in to comment.