Skip to content

Commit b496ae9

Browse files
committed
Reverting useless change.
1 parent ac54650 commit b496ae9

File tree

1 file changed

+3
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/execution

1 file changed

+3
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/execution/PlanExecutor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
public class PlanExecutor {
4343

4444
private final IndexResolver indexResolver;
45+
private final PreAnalyzer preAnalyzer;
4546
private final EsqlFunctionRegistry functionRegistry;
4647
private final Mapper mapper;
4748
private final Metrics metrics;
@@ -58,6 +59,7 @@ public PlanExecutor(
5859
Settings settings
5960
) {
6061
this.indexResolver = indexResolver;
62+
this.preAnalyzer = new PreAnalyzer();
6163
this.functionRegistry = new EsqlFunctionRegistry();
6264
this.mapper = new Mapper();
6365
this.metrics = new Metrics(functionRegistry);
@@ -84,7 +86,7 @@ public void esql(
8486
cfg,
8587
indexResolver,
8688
enrichPolicyResolver,
87-
new PreAnalyzer(),
89+
preAnalyzer,
8890
new LogicalPlanPreOptimizer(new LogicalPreOptimizerContext(foldContext)),
8991
functionRegistry,
9092
new LogicalPlanOptimizer(new LogicalOptimizerContext(cfg, foldContext)),

0 commit comments

Comments
 (0)