Skip to content

Commit 32c6735

Browse files
committed
fixup
1 parent b8af4a3 commit 32c6735

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/k8s-timeseries-clamp.csv-spec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
clamp_of_double_no_grouping
22
required_capability: ts_command_v0
3+
required_capability: clamp_functions
34
// tag::clamp-min[]
45
TS k8s
56
| STATS full_clamped_cost=sum(clamp(network.cost, 1, 2)), clamped_cost=sum(clamp_max(network.cost, 1)), clamped_min_cost=sum(clamp_min(network.cost, 10)) BY time_bucket = bucket(@timestamp,1minute)
@@ -24,6 +25,7 @@ full_clamped_cost:double | clamped_cost:double | clamped_min_cost:double | time_
2425

2526
clamp_of_double_no_grouping
2627
required_capability: ts_command_v0
28+
required_capability: clamp_functions
2729
// tag::clamp-max[]
2830
TS k8s
2931
| STATS full_clamped_cost=sum(clamp(network.cost, 1, 2)), clamped_cost=sum(clamp_max(network.cost, 1)), clamped_min_cost=sum(clamp_min(network.cost, 10)) BY time_bucket = bucket(@timestamp,1minute)
@@ -48,6 +50,7 @@ full_clamped_cost:double | clamped_cost:double | clamped_min_cost:double | time_
4850

4951
clamp_of_long
5052
required_capability: ts_command_v0
53+
required_capability: clamp_functions
5154
// tag::clamp[]
5255
TS k8s
5356
| STATS bytes_in = sum(network.bytes_in),
@@ -71,8 +74,4 @@ bytes_in:long | clamped_network_bytes_in:long | time_bucket:datetime
7174
3188 | 1295 | 2024-05-10T00:08:00.000Z
7275
3850 | 1468 | 2024-05-10T00:09:00.000Z
7376

74-
75-
76-
77-
7877
;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ public enum Cap {
12261226
*/
12271227
INCREASE,
12281228
DELTA_TS_AGG,
1229+
CLAMP_FUNCTIONS,
12291230

12301231
/**
12311232
* Extra field types in the k8s.csv dataset

0 commit comments

Comments
 (0)