Skip to content

Commit c73246d

Browse files
Remove AddDefaultTopN rule
1 parent 5c1ed70 commit c73246d

File tree

2 files changed

+1
-57
lines changed

2 files changed

+1
-57
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.elasticsearch.xpack.esql.VerificationException;
1111
import org.elasticsearch.xpack.esql.common.Failures;
1212
import org.elasticsearch.xpack.esql.core.type.DataType;
13-
import org.elasticsearch.xpack.esql.optimizer.rules.logical.AddDefaultTopN;
1413
import org.elasticsearch.xpack.esql.optimizer.rules.logical.BooleanFunctionEqualsElimination;
1514
import org.elasticsearch.xpack.esql.optimizer.rules.logical.BooleanSimplification;
1615
import org.elasticsearch.xpack.esql.optimizer.rules.logical.CombineBinaryComparisons;
@@ -116,10 +115,9 @@ protected List<Batch<LogicalPlan>> batches() {
116115

117116
protected static List<Batch<LogicalPlan>> rules() {
118117
var skip = new Batch<>("Skip Compute", new SkipQueryOnLimitZero());
119-
var defaultTopN = new Batch<>("Add default TopN", new AddDefaultTopN());
120118
var label = new Batch<>("Set as Optimized", Limiter.ONCE, new SetAsOptimized());
121119

122-
return asList(substitutions(), operators(), skip, cleanup(), defaultTopN, label);
120+
return asList(substitutions(), operators(), skip, cleanup(), label);
123121
}
124122

125123
protected static Batch<LogicalPlan> substitutions() {

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/AddDefaultTopN.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)