Skip to content

Commit

Permalink
ESQL: Fix LogicalPlanOptimizerTests testPlanSanityCheckWithBinaryPlans (
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-spies authored Dec 13, 2024
1 parent 950db57 commit 54e839b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ tests:
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
method: testInvalidJSON
issue: https://github.com/elastic/elasticsearch/issues/116521
- class: org.elasticsearch.xpack.esql.optimizer.LogicalPlanOptimizerTests
method: testPlanSanityCheckWithBinaryPlans
issue: https://github.com/elastic/elasticsearch/issues/118656

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4911,8 +4911,7 @@ public void testPlanSanityCheckWithBinaryPlans() throws Exception {
""");

var project = as(plan, Project.class);
var limit = as(project.child(), Limit.class);
var join = as(limit.child(), Join.class);
var join = as(project.child(), Join.class);

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

0 comments on commit 54e839b

Please sign in to comment.