Skip to content

Commit 1fec8c0

Browse files
authored
ESQL: Fix LogicalPlanOptimizerTests testPlanSanityCheckWithBinaryPlans (elastic#118672) (elastic#118689)
(cherry picked from commit 54e839b) # Conflicts: # muted-tests.yml
1 parent 618f898 commit 1fec8c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4911,8 +4911,7 @@ public void testPlanSanityCheckWithBinaryPlans() throws Exception {
49114911
""");
49124912

49134913
var project = as(plan, Project.class);
4914-
var limit = as(project.child(), Limit.class);
4915-
var join = as(limit.child(), Join.class);
4914+
var join = as(project.child(), Join.class);
49164915

49174916
var joinWithInvalidLeftPlan = join.replaceChildren(join.right(), join.right());
49184917
IllegalStateException e = expectThrows(IllegalStateException.class, () -> logicalOptimizer.optimize(joinWithInvalidLeftPlan));

0 commit comments

Comments
 (0)