Skip to content

Commit 2884174

Browse files
committed
Do not test converters for types that are in snapshot only
1 parent 62c4778 commit 2884174

File tree

1 file changed

+5
-0
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
package org.elasticsearch.xpack.esql.analysis;
99

10+
import org.elasticsearch.Build;
1011
import org.elasticsearch.core.PathUtils;
1112
import org.elasticsearch.test.ESTestCase;
1213
import org.elasticsearch.xcontent.XContentBuilder;
@@ -93,6 +94,10 @@ public void testInlineCast() throws IOException {
9394
report.humanReadable(true).prettyPrint();
9495
report.startObject();
9596
List<String> namesAndAliases = new ArrayList<>(DataType.namesAndAliases());
97+
if (Build.current().isSnapshot() == false) {
98+
// Some types do not have a converter in release builds
99+
namesAndAliases.removeAll(List.of("geohash", "geotile", "geohex"));
100+
}
96101
Collections.sort(namesAndAliases);
97102
for (String nameOrAlias : namesAndAliases) {
98103
DataType expectedType = DataType.fromNameOrAlias(nameOrAlias);

0 commit comments

Comments
 (0)