Skip to content

Commit 3590a3c

Browse files
committed
Fix error added during merge.
1 parent 6fbc6b7 commit 3590a3c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/planner/QueryTranslatorTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
1515
import org.elasticsearch.xpack.esql.analysis.Analyzer;
1616
import org.elasticsearch.xpack.esql.analysis.AnalyzerContext;
17+
import org.elasticsearch.xpack.esql.analysis.EnrichResolution;
1718
import org.elasticsearch.xpack.esql.analysis.Verifier;
1819
import org.elasticsearch.xpack.esql.expression.function.EsqlFunctionRegistry;
1920
import org.elasticsearch.xpack.esql.index.EsIndex;
2021
import org.elasticsearch.xpack.esql.index.IndexResolution;
22+
import org.elasticsearch.xpack.esql.inference.InferenceResolution;
2123
import org.elasticsearch.xpack.esql.optimizer.TestPlannerOptimizer;
2224
import org.elasticsearch.xpack.esql.plan.physical.EsQueryExec;
2325
import org.elasticsearch.xpack.esql.plan.physical.PhysicalPlan;
@@ -65,7 +67,13 @@ private static Analyzer makeAnalyzer(String mappingFileName) {
6567

6668
public static Analyzer makeAnalyzer(IndexResolution indexResolution) {
6769
return new Analyzer(
68-
new AnalyzerContext(EsqlTestUtils.TEST_CFG, new EsqlFunctionRegistry(), indexResolution, new EnrichResolution()),
70+
new AnalyzerContext(
71+
EsqlTestUtils.TEST_CFG,
72+
new EsqlFunctionRegistry(),
73+
indexResolution,
74+
new EnrichResolution(),
75+
InferenceResolution.builder().build()
76+
),
6977
new Verifier(new Metrics(new EsqlFunctionRegistry()), new XPackLicenseState(() -> 0L))
7078
);
7179
}

0 commit comments

Comments
 (0)