Class EsqlFeatures

java.lang.Object
org.elasticsearch.xpack.esql.plugin.EsqlFeatures
All Implemented Interfaces:
FeatureSpecification

public class EsqlFeatures extends Object implements FeatureSpecification
NodeFeatures declared by ESQL. These should be used for fast checks on the node. Before the introduction of the RestNodesCapabilitiesAction this was used for controlling which features are tested so many of the examples below are *just* used for that. Don't make more of those - add them to EsqlCapabilities instead.

NOTE: You can't remove a feature now and probably never will be able to. Only add more of these if you need a fast CPU level check.

  • Field Details

    • ASYNC_QUERY

      public static final NodeFeature ASYNC_QUERY
      Does ESQL support async queries.
    • FROM_OPTIONS

      @Deprecated public static final NodeFeature FROM_OPTIONS
      Deprecated.
      Does ESQL support FROM OPTIONS?
    • STRING_LITERAL_AUTO_CASTING

      public static final NodeFeature STRING_LITERAL_AUTO_CASTING
      Cast string literals to a desired data type.
    • BASE64_DECODE_ENCODE

      public static final NodeFeature BASE64_DECODE_ENCODE
      Base64 encoding and decoding functions.
    • CASTING_OPERATOR

      public static final NodeFeature CASTING_OPERATOR
      Support for the :: casting operator
    • MV_ORDERING_SORTED_ASCENDING

      public static final NodeFeature MV_ORDERING_SORTED_ASCENDING
      Blocks can be labelled with Block.MvOrdering.SORTED_ASCENDING for optimizations.
    • METRICS_COUNTER_FIELDS

      public static final NodeFeature METRICS_COUNTER_FIELDS
      Support for metrics counter fields
    • STRING_LITERAL_AUTO_CASTING_EXTENDED

      public static final NodeFeature STRING_LITERAL_AUTO_CASTING_EXTENDED
      Cast string literals to a desired data type for IN predicate and more types for BinaryComparison.
    • METADATA_FIELDS

      public static final NodeFeature METADATA_FIELDS
      Support for metadata fields.
    • ENRICH_LOAD

      public static final NodeFeature ENRICH_LOAD
      Support for loading values over enrich. This is supported by all versions of ESQL but not the unit test CsvTests.
    • TIMESPAN_ABBREVIATIONS

      public static final NodeFeature TIMESPAN_ABBREVIATIONS
      Support for timespan units abbreviations
    • COUNTER_TYPES

      public static final NodeFeature COUNTER_TYPES
      Support metrics counter types
    • METRICS_SYNTAX

      public static final NodeFeature METRICS_SYNTAX
      Support metrics syntax
    • RESOLVE_FIELDS_API

      public static final NodeFeature RESOLVE_FIELDS_API
      Internal resolve_fields API for ES|QL
  • Constructor Details

    • EsqlFeatures

      public EsqlFeatures()
  • Method Details