Skip to content

Commit a7e7faa

Browse files
committed
Move capability to better location
1 parent e8251f6 commit a7e7faa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@ public enum Cap {
384384
*/
385385
UNION_TYPES_AGG_CAST,
386386

387+
/**
388+
* When pushing down {@code STATS count(field::type)} for a union type field, we wrongly used a synthetic attribute name in the
389+
* query instead of the actual field name. This led to 0 counts instead of the correct result.
390+
*/
391+
FIX_COUNT_PUSHDOWN_FOR_UNION_TYPES,
392+
387393
/**
388394
* Fix to GROK validation in case of multiple fields with same name and different types
389395
* https://github.com/elastic/elasticsearch/issues/110533
@@ -1038,13 +1044,7 @@ public enum Cap {
10381044
/**
10391045
* Support for the SAMPLE command
10401046
*/
1041-
SAMPLE(Build.current().isSnapshot()),
1042-
1043-
/**
1044-
* When pushing down {@code STATS count(field::type)} for a union type field, we wrongly used a synthetic attribute name in the
1045-
* query instead of the actual field name. This led to 0 counts instead of the correct result.
1046-
*/
1047-
FIX_COUNT_PUSHDOWN_FOR_UNION_TYPES;
1047+
SAMPLE(Build.current().isSnapshot());
10481048

10491049
private final boolean enabled;
10501050

0 commit comments

Comments
 (0)