Skip to content

Commit a9a8e16

Browse files
committed
Add capability
1 parent b2efdf7 commit a9a8e16

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/change_point.csv-spec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
change point stationary with timestamp argument
2-
# required_capability: change_point
2+
required_capability: change_point
33

44
FROM k8s
55
| STATS count=COUNT() BY timestamp=BUCKET(@timestamp, 1 minute)
@@ -12,7 +12,7 @@ cp:keyword
1212

1313

1414
change point stationary without timestamp argument
15-
# required_capability: change_point
15+
required_capability: change_point
1616

1717
FROM k8s
1818
| STATS count=COUNT() BY @timestamp=BUCKET(@timestamp, 1 minute)
@@ -25,7 +25,7 @@ cp:keyword
2525

2626

2727
change point spike (long)
28-
# required_capability: change_point
28+
required_capability: change_point
2929

3030
FROM k8s
3131
| STATS count=COUNT() BY timestamp=BUCKET(@timestamp, 1 minute)
@@ -39,7 +39,7 @@ cp:keyword
3939

4040

4141
change point spike (int)
42-
# required_capability: change_point
42+
required_capability: change_point
4343

4444
FROM k8s
4545
| STATS count=COUNT() BY timestamp=BUCKET(@timestamp, 1 minute)
@@ -53,7 +53,7 @@ cp:keyword
5353

5454

5555
change point spike (double)
56-
# required_capability: change_point
56+
required_capability: change_point
5757

5858
FROM k8s
5959
| STATS count=COUNT() BY timestamp=BUCKET(@timestamp, 1 minute)
@@ -67,7 +67,7 @@ cp:keyword
6767

6868

6969
change point grouping with timestamp argument
70-
# required_capability: change_point
70+
required_capability: change_point
7171

7272
FROM k8s
7373
| STATS count=COUNT() BY timestamp=BUCKET(@timestamp, 1 minute), cluster
@@ -83,7 +83,7 @@ cp:keyword
8383

8484

8585
change point grouping without timestamp argument
86-
# required_capability: change_point
86+
required_capability: change_point
8787

8888
FROM k8s
8989
| STATS count=COUNT() BY @timestamp=BUCKET(@timestamp, 1 minute), cluster

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,12 @@ public enum Cap {
600600
/**
601601
* Full text functions can be used in disjunctions
602602
*/
603-
FULL_TEXT_FUNCTIONS_DISJUNCTIONS;
603+
FULL_TEXT_FUNCTIONS_DISJUNCTIONS,
604+
605+
/**
606+
* Support change point detection function "CHANGE_POINT"
607+
*/
608+
CHANGE_POINT;
604609

605610
private final boolean enabled;
606611

0 commit comments

Comments
 (0)