Skip to content

Commit

Permalink
fix setoperation rf npe
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Oct 19, 2023
1 parent 350752b commit c14c745
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,10 @@ private void doPushDownIntoSetOperation(PhysicalHashJoin<? extends Plan, ? exten
break;
}
}
Preconditions.checkState(projIndex >= 0
&& projIndex < project.getProjects().size());

if (projIndex < 0 || projIndex >= project.getProjects().size()) {
continue;
}

NamedExpression targetExpr = (NamedExpression) project.getProjects().get(projIndex);

Expand Down

0 comments on commit c14c745

Please sign in to comment.