Skip to content

Commit ab1506e

Browse files
committed
Supress RestEsqlIT because complex queries like this are not supported yet
1 parent 4937985 commit ab1506e

File tree

1 file changed

+1
-7
lines changed
  • x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node

1 file changed

+1
-7
lines changed

x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,6 @@ public void testSuggestedCast() throws IOException {
756756
}
757757
""");
758758
}
759-
if (EsqlCapabilities.Cap.DATE_RANGE_FIELD_TYPE.isEnabled()) {
760-
typesAndValues = new HashMap<>(typesAndValues);
761-
typesAndValues.put(DataType.DATE_RANGE, "2020-01-01..2030-01-01");
762-
}
763759
Set<DataType> shouldBeSupported = Stream.of(DataType.values()).filter(DataType::isRepresentable).collect(Collectors.toSet());
764760
shouldBeSupported.remove(DataType.CARTESIAN_POINT);
765761
shouldBeSupported.remove(DataType.CARTESIAN_SHAPE);
@@ -770,12 +766,10 @@ public void testSuggestedCast() throws IOException {
770766
shouldBeSupported.remove(DataType.DOC_DATA_TYPE);
771767
shouldBeSupported.remove(DataType.TSID_DATA_TYPE);
772768
shouldBeSupported.remove(DataType.DENSE_VECTOR);
769+
shouldBeSupported.remove(DataType.DATE_RANGE);
773770
if (EsqlCapabilities.Cap.AGGREGATE_METRIC_DOUBLE_V0.isEnabled() == false) {
774771
shouldBeSupported.remove(DataType.AGGREGATE_METRIC_DOUBLE);
775772
}
776-
if (EsqlCapabilities.Cap.DATE_RANGE_FIELD_TYPE.isEnabled() == false) {
777-
shouldBeSupported.remove(DataType.DATE_RANGE);
778-
}
779773
for (DataType type : shouldBeSupported) {
780774
assertTrue(type.typeName(), typesAndValues.containsKey(type));
781775
}

0 commit comments

Comments
 (0)