[minor](nereids): remove useless code (#35325)
This commit is contained in:
@ -43,11 +43,6 @@ public class AdjustConjunctsReturnType extends DefaultPlanRewriter<Void> impleme
|
||||
return plan.accept(this, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Plan visit(Plan plan, Void context) {
|
||||
return super.visit(plan, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Plan visitLogicalFilter(LogicalFilter<? extends Plan> filter, Void context) {
|
||||
filter = (LogicalFilter<? extends Plan>) super.visit(filter, context);
|
||||
|
||||
@ -90,20 +90,6 @@ public class OrExpansion extends DefaultPlanRewriter<OrExpandsionContext> implem
|
||||
return plan;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Plan visit(Plan plan, OrExpandsionContext ctx) {
|
||||
List<Plan> newChildren = new ArrayList<>();
|
||||
boolean hasNewChildren = false;
|
||||
for (Plan child : plan.children()) {
|
||||
Plan newChild = child.accept(this, ctx);
|
||||
if (newChild != child) {
|
||||
hasNewChildren = true;
|
||||
}
|
||||
newChildren.add(newChild);
|
||||
}
|
||||
return hasNewChildren ? plan.withChildren(newChildren) : plan;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Plan visitLogicalCTEAnchor(
|
||||
LogicalCTEAnchor<? extends Plan, ? extends Plan> anchor, OrExpandsionContext ctx) {
|
||||
|
||||
Reference in New Issue
Block a user