Skip to content

Commit 52b20d3

Browse files
costinncordon
authored andcommitted
PromQL: Fix compilation error not caught during PR merge
1 parent 893f8fb commit 52b20d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/promql/PromqlLogicalPlanOptimizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import java.time.temporal.ChronoUnit;
4444
import java.util.List;
4545
import java.util.Map;
46+
import java.util.Set;
4647

4748
import static java.util.Collections.emptyMap;
4849
import static org.elasticsearch.xpack.esql.EsqlTestUtils.TEST_VERIFIER;
@@ -52,7 +53,6 @@
5253
import static org.hamcrest.Matchers.equalTo;
5354
import static org.hamcrest.Matchers.hasSize;
5455
import static org.hamcrest.Matchers.instanceOf;
55-
import static org.junit.Assume.assumeTrue;
5656

5757
// @TestLogging(value = "org.elasticsearch.xpack.esql:TRACE", reason = "debug tests")
5858
public class PromqlLogicalPlanOptimizerTests extends AbstractLogicalPlanOptimizerTests {
@@ -66,7 +66,7 @@ public static void initTest() {
6666
assumeTrue("requires snapshot build with promql feature enabled", PromqlFeatures.isEnabled());
6767

6868
var timeSeriesMapping = loadMapping("k8s-mappings.json");
69-
var timeSeriesIndex = IndexResolution.valid(new EsIndex("k8s", timeSeriesMapping, Map.of("k8s", IndexMode.TIME_SERIES)));
69+
var timeSeriesIndex = IndexResolution.valid(new EsIndex("k8s", timeSeriesMapping, Map.of("k8s", IndexMode.TIME_SERIES), Set.of()));
7070
tsAnalyzer = new Analyzer(
7171
new AnalyzerContext(
7272
EsqlTestUtils.TEST_CFG,

0 commit comments

Comments
 (0)