|
27 | 27 | */ |
28 | 28 | public class EsqlCapabilities { |
29 | 29 | public enum Cap { |
| 30 | + /** |
| 31 | + * Introduction of {@code MV_SORT}, {@code MV_SLICE}, and {@code MV_ZIP}. |
| 32 | + * Added in #106095. |
| 33 | + */ |
| 34 | + MV_SORT, |
| 35 | + |
| 36 | + /** |
| 37 | + * When we disabled some broken optimizations around {@code nullable}. |
| 38 | + * Fixed in #105691. |
| 39 | + */ |
| 40 | + DISABLE_NULLABLE_OPTS, |
| 41 | + |
| 42 | + /** |
| 43 | + * Introduction of {@code ST_X} and {@code ST_Y}. Added in #105768. |
| 44 | + */ |
| 45 | + ST_X_Y, |
| 46 | + |
| 47 | + /** |
| 48 | + * Changed precision of {@code geo_point} and {@code cartesian_point} fields, by loading from source into WKB. Done in #103691. |
| 49 | + */ |
| 50 | + SPATIAL_POINTS_FROM_SOURCE, |
| 51 | + |
| 52 | + /** |
| 53 | + * Support for loading {@code geo_shape} and {@code cartesian_shape} fields. Done in #104269. |
| 54 | + */ |
| 55 | + SPATIAL_SHAPES, |
| 56 | + |
| 57 | + /** |
| 58 | + * Support for spatial aggregation {@code ST_CENTROID}. Done in #104269. |
| 59 | + */ |
| 60 | + ST_CENTROID_AGG, |
| 61 | + |
| 62 | + /** |
| 63 | + * Support for spatial aggregation {@code ST_INTERSECTS}. Done in #104907. |
| 64 | + */ |
| 65 | + ST_INTERSECTS, |
| 66 | + |
| 67 | + /** |
| 68 | + * Support for spatial aggregation {@code ST_CONTAINS} and {@code ST_WITHIN}. Done in #106503. |
| 69 | + */ |
| 70 | + ST_CONTAINS_WITHIN, |
| 71 | + |
| 72 | + /** |
| 73 | + * Support for spatial aggregation {@code ST_DISJOINT}. Done in #107007. |
| 74 | + */ |
| 75 | + ST_DISJOINT, |
| 76 | + |
| 77 | + /** |
| 78 | + * The introduction of the {@code VALUES} agg. |
| 79 | + */ |
| 80 | + AGG_VALUES, |
| 81 | + |
| 82 | + /** |
| 83 | + * Does ESQL support async queries. |
| 84 | + */ |
| 85 | + ASYNC_QUERY, |
| 86 | + |
| 87 | + /** |
| 88 | + * Does ESQL support FROM OPTIONS? |
| 89 | + */ |
| 90 | + @Deprecated |
| 91 | + FROM_OPTIONS, |
| 92 | + |
| 93 | + /** |
| 94 | + * Cast string literals to a desired data type. |
| 95 | + */ |
| 96 | + STRING_LITERAL_AUTO_CASTING, |
| 97 | + |
| 98 | + /** |
| 99 | + * Base64 encoding and decoding functions. |
| 100 | + */ |
| 101 | + BASE64_DECODE_ENCODE, |
| 102 | + |
| 103 | + /** |
| 104 | + * Support for the :: casting operator |
| 105 | + */ |
| 106 | + CASTING_OPERATOR, |
| 107 | + |
| 108 | + /** |
| 109 | + * Blocks can be labelled with {@link org.elasticsearch.compute.data.Block.MvOrdering#SORTED_ASCENDING} for optimizations. |
| 110 | + */ |
| 111 | + MV_ORDERING_SORTED_ASCENDING, |
| 112 | + |
| 113 | + /** |
| 114 | + * Support for metrics counter fields |
| 115 | + */ |
| 116 | + METRICS_COUNTER_FIELDS, |
| 117 | + |
| 118 | + /** |
| 119 | + * Cast string literals to a desired data type for IN predicate and more types for BinaryComparison. |
| 120 | + */ |
| 121 | + STRING_LITERAL_AUTO_CASTING_EXTENDED, |
| 122 | + |
| 123 | + /** |
| 124 | + * Support for metadata fields. |
| 125 | + */ |
| 126 | + METADATA_FIELDS, |
| 127 | + |
| 128 | + /** |
| 129 | + * Support for timespan units abbreviations |
| 130 | + */ |
| 131 | + TIMESPAN_ABBREVIATIONS, |
| 132 | + |
| 133 | + /** |
| 134 | + * Support metrics counter types |
| 135 | + */ |
| 136 | + COUNTER_TYPES, |
30 | 137 |
|
31 | 138 | /** |
32 | 139 | * Support for function {@code BIT_LENGTH}. Done in #115792 |
@@ -189,9 +296,12 @@ public enum Cap { |
189 | 296 | */ |
190 | 297 | ST_DISTANCE, |
191 | 298 |
|
192 | | - /** Support for function {@code ST_EXTENT}. */ |
| 299 | + /** Support for function {@code ST_EXTENT_AGG}. */ |
193 | 300 | ST_EXTENT_AGG, |
194 | 301 |
|
| 302 | + /** Optimization of ST_EXTENT_AGG with doc-values as IntBlock. */ |
| 303 | + ST_EXTENT_AGG_DOCVALUES, |
| 304 | + |
195 | 305 | /** |
196 | 306 | * Fix determination of CRS types in spatial functions when folding. |
197 | 307 | */ |
@@ -380,6 +490,15 @@ public enum Cap { |
380 | 490 | */ |
381 | 491 | DATE_NANOS_AGGREGATIONS(), |
382 | 492 |
|
| 493 | + /** |
| 494 | + * Support the {@link org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.In} operator for date nanos |
| 495 | + */ |
| 496 | + DATE_NANOS_IN_OPERATOR(), |
| 497 | + /** |
| 498 | + * Support running date format function on nanosecond dates |
| 499 | + */ |
| 500 | + DATE_NANOS_DATE_FORMAT(), |
| 501 | + |
383 | 502 | /** |
384 | 503 | * DATE_PARSE supports reading timezones |
385 | 504 | */ |
@@ -564,7 +683,7 @@ public enum Cap { |
564 | 683 | /** |
565 | 684 | * LOOKUP JOIN |
566 | 685 | */ |
567 | | - JOIN_LOOKUP_V10(Build.current().isSnapshot()), |
| 686 | + JOIN_LOOKUP_V11(Build.current().isSnapshot()), |
568 | 687 |
|
569 | 688 | /** |
570 | 689 | * Fix for https://github.com/elastic/elasticsearch/issues/117054 |
|
0 commit comments