Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Jan 9, 2025
1 parent caaebbc commit 74db7be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public static PlanCheckContext of(Set<JoinType> supportJoinTypes) {
* should be valid
*/
public static boolean isValidPushedNode(Plan plan) {
return plan instanceof CouldPushed && ((CouldPushed) plan).needRemain() == true
return plan instanceof CouldPushed && ((CouldPushed) plan).needRemain()
&& ((CouldPushed) plan).isPushed();
}

Expand Down Expand Up @@ -702,7 +702,8 @@ public Boolean visit(Plan plan, PlanCheckContext checkContext) {
|| plan instanceof LogicalSort
|| plan instanceof LogicalAggregate
|| plan instanceof GroupPlan
|| plan instanceof LogicalRepeat || isValidPushedNode(plan)) {
|| plan instanceof LogicalRepeat
|| isValidPushedNode(plan)) {
return doVisit(plan, checkContext);
}
return false;
Expand Down

0 comments on commit 74db7be

Please sign in to comment.