File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4747
4848import static org .elasticsearch .xpack .esql .core .type .DataType .AGGREGATE_METRIC_DOUBLE ;
4949import static org .elasticsearch .xpack .esql .core .type .DataType .DATETIME ;
50+ import static org .elasticsearch .xpack .esql .core .type .DataType .DATE_RANGE ;
5051import static org .elasticsearch .xpack .esql .core .type .DataType .DENSE_VECTOR ;
5152import static org .elasticsearch .xpack .esql .core .type .DataType .KEYWORD ;
5253import 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 ();
You can’t perform that action at this time.
0 commit comments