Skip to content

Commit 4076106

Browse files
Test adding checks
1 parent bcf0892 commit 4076106

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/LocalLogicalPlanOptimizer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,8 @@ private static Batch<LogicalPlan> localOperators() {
8585
}
8686

8787
public LogicalPlan localOptimize(LogicalPlan plan) {
88-
Failures failures = verifier.verify(plan);
89-
if (failures.hasFailures()) {
90-
throw new VerificationException("Plan before optimize not valid: " + failures + " for plan: " + plan.nodeString());
91-
}
9288
LogicalPlan optimized = execute(plan);
93-
failures = verifier.verify(optimized);
89+
Failures failures = verifier.verify(optimized);
9490
if (failures.hasFailures()) {
9591
throw new VerificationException("Plan after optimize not valid: " + failures + " for plan: " + plan.nodeString());
9692
}

0 commit comments

Comments
 (0)