Skip to content

Commit 29cd5c4

Browse files
authored
[ES|QL] Add aggregate metric double feature flag to its capability (#121318) (#121344)
AggregateMetricDouble should be behind a feature flag but on release builds it was getting added when it should not have been. This commit addresses that bug.
1 parent adb558b commit 29cd5c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import java.util.Locale;
2121
import java.util.Set;
2222

23+
import static org.elasticsearch.xpack.esql.core.plugin.EsqlCorePlugin.AGGREGATE_METRIC_DOUBLE_FEATURE_FLAG;
24+
2325
/**
2426
* A {@link Set} of "capabilities" supported by the {@link RestEsqlQueryAction}
2527
* and {@link RestEsqlAsyncQueryAction} APIs. These are exposed over the
@@ -662,7 +664,7 @@ public enum Cap {
662664
/**
663665
* Support for aggregate_metric_double type
664666
*/
665-
AGGREGATE_METRIC_DOUBLE;
667+
AGGREGATE_METRIC_DOUBLE(AGGREGATE_METRIC_DOUBLE_FEATURE_FLAG.isEnabled());
666668

667669
private final boolean enabled;
668670

0 commit comments

Comments
 (0)