Skip to content

Commit 6cf3835

Browse files
authored
[ES|QL] Add aggregate metric double feature flag to its capability (#121318)
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 b660359 commit 6cf3835

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
@@ -784,7 +786,7 @@ public enum Cap {
784786
/**
785787
* Support for aggregate_metric_double type
786788
*/
787-
AGGREGATE_METRIC_DOUBLE;
789+
AGGREGATE_METRIC_DOUBLE(AGGREGATE_METRIC_DOUBLE_FEATURE_FLAG.isEnabled());
788790

789791
private final boolean enabled;
790792

0 commit comments

Comments
 (0)