Skip to content

Commit 2136d06

Browse files
authored
Only run VerifierTests for change_point on snapshot builds. (#122167)
1 parent 43c841a commit 2136d06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,6 +2018,7 @@ public void testCategorizeWithFilteredAggregations() {
20182018
}
20192019

20202020
public void testChangePoint() {
2021+
assumeTrue("change_point must be enabled", EsqlCapabilities.Cap.CHANGE_POINT.isEnabled());
20212022
var airports = AnalyzerTestUtils.analyzer(loadMapping("mapping-airports.json", "airports"));
20222023
assertEquals("1:30: Unknown column [blahblah]", error("FROM airports | CHANGE_POINT blahblah ON scalerank", airports));
20232024
assertEquals("1:43: Unknown column [blahblah]", error("FROM airports | CHANGE_POINT scalerank ON blahblah", airports));
@@ -2026,6 +2027,7 @@ public void testChangePoint() {
20262027
}
20272028

20282029
public void testChangePoint_keySortable() {
2030+
assumeTrue("change_point must be enabled", EsqlCapabilities.Cap.CHANGE_POINT.isEnabled());
20292031
List<DataType> sortableTypes = List.of(BOOLEAN, DOUBLE, DATE_NANOS, DATETIME, INTEGER, IP, KEYWORD, LONG, UNSIGNED_LONG, VERSION);
20302032
List<DataType> unsortableTypes = List.of(CARTESIAN_POINT, CARTESIAN_SHAPE, GEO_POINT, GEO_SHAPE);
20312033
for (DataType type : sortableTypes) {
@@ -2040,6 +2042,7 @@ public void testChangePoint_keySortable() {
20402042
}
20412043

20422044
public void testChangePoint_valueNumeric() {
2045+
assumeTrue("change_point must be enabled", EsqlCapabilities.Cap.CHANGE_POINT.isEnabled());
20432046
List<DataType> numericTypes = List.of(DOUBLE, INTEGER, LONG, UNSIGNED_LONG);
20442047
List<DataType> nonNumericTypes = List.of(
20452048
BOOLEAN,

0 commit comments

Comments
 (0)