Skip to content

Commit

Permalink
Fix a small issue in function 'checkUnaryOpApplicableToUnionPlan'
Browse files Browse the repository at this point in the history
  • Loading branch information
chengsijin0817 committed May 2, 2023
1 parent 8fa80aa commit aabb289
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 aabb289

Please sign in to comment.