Skip to content

Commit

Permalink
Remove unnecessary use of DisabledSearchStats
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaverner committed Oct 31, 2024
1 parent 27cf414 commit 856d702
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.elasticsearch.xpack.esql.plan.physical.EvalExec;
import org.elasticsearch.xpack.esql.plan.physical.PhysicalPlan;
import org.elasticsearch.xpack.esql.plan.physical.TopNExec;
import org.elasticsearch.xpack.esql.stats.DisabledSearchStats;
import org.elasticsearch.xpack.esql.stats.SearchStats;

import java.io.IOException;
import java.nio.ByteOrder;
Expand Down Expand Up @@ -256,8 +256,7 @@ private static void assertNoPushdownSort(TestPhysicalPlanBuilder builder, String

private static PhysicalPlan pushTopNToSource(TopNExec topNExec) {
var configuration = EsqlTestUtils.configuration("from test");
var searchStats = new DisabledSearchStats();
var ctx = new LocalPhysicalOptimizerContext(configuration, searchStats);
var ctx = new LocalPhysicalOptimizerContext(configuration, SearchStats.EMPTY);
var pushTopNToSource = new PushTopNToSource();
return pushTopNToSource.rule(topNExec, ctx);
}
Expand Down

0 comments on commit 856d702

Please sign in to comment.