Skip to content

Commit cde8323

Browse files
committed
Fixed a typo
1 parent 5791f06 commit cde8323

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/IndexResolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
import static org.elasticsearch.xpack.esql.core.type.DataType.AGGREGATE_METRIC_DOUBLE;
4949
import static org.elasticsearch.xpack.esql.core.type.DataType.DATETIME;
50+
import static org.elasticsearch.xpack.esql.core.type.DataType.DATE_RANGE;
5051
import static org.elasticsearch.xpack.esql.core.type.DataType.DENSE_VECTOR;
5152
import static org.elasticsearch.xpack.esql.core.type.DataType.KEYWORD;
5253
import static org.elasticsearch.xpack.esql.core.type.DataType.OBJECT;
@@ -289,7 +290,7 @@ private static EsField createField(
289290
type = switch (type) {
290291
case AGGREGATE_METRIC_DOUBLE -> fieldsInfo.supportAggregateMetricDouble ? AGGREGATE_METRIC_DOUBLE : UNSUPPORTED;
291292
case DENSE_VECTOR -> fieldsInfo.supportDenseVector ? DENSE_VECTOR : UNSUPPORTED;
292-
case DATE_RANGE -> fieldsInfo.supportDateRange ? DATETIME : UNSUPPORTED;
293+
case DATE_RANGE -> fieldsInfo.supportDateRange ? DATE_RANGE : UNSUPPORTED;
293294
default -> type;
294295
};
295296
boolean aggregatable = first.isAggregatable();

0 commit comments

Comments
 (0)