Skip to content

Commit 2c1056a

Browse files
committed
Fix serverless failure
1 parent ea7d8a8 commit 2c1056a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fork2 | 6.093784261960139E18 | 2 | all we have to decide is w
114114
;
115115

116116
forkWithEvals
117-
required_capability: fork
117+
required_capability: fork_v2
118118

119119
FROM employees
120120
| FORK (WHERE emp_no == 10048 OR emp_no == 10081 | EVAL x = "abc" | EVAL y = 1)
@@ -131,7 +131,7 @@ fork2 | 10087 | def | null | 2
131131
;
132132

133133
forkWithStats
134-
required_capability: fork
134+
required_capability: fork_v2
135135

136136
FROM employees
137137
| FORK (WHERE emp_no == 10048 OR emp_no == 10081)
@@ -152,7 +152,7 @@ fork4 | null | 100 | 10001 | null
152152
;
153153

154154
forkWithDissect
155-
required_capability: fork
155+
required_capability: fork_v2
156156

157157
FROM employees
158158
| WHERE emp_no == 10048 OR emp_no == 10081
@@ -172,7 +172,7 @@ fork2 | 10081 | Rosen | 10081 | null | Zhongwei
172172
;
173173

174174
forkWithMixOfCommands
175-
required_capability: fork
175+
required_capability: fork_v2
176176

177177
FROM employees
178178
| WHERE emp_no == 10048 OR emp_no == 10081

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
@@ -964,7 +964,12 @@ public enum Cap {
964964
/**
965965
* Support max_over_time aggregation
966966
*/
967-
MAX_OVER_TIME(Build.current().isSnapshot());
967+
MAX_OVER_TIME(Build.current().isSnapshot()),
968+
969+
/**
970+
* Support STATS/EVAL/DISSECT in Fork branches
971+
*/
972+
FORK_V2(Build.current().isSnapshot());
968973

969974
private final boolean enabled;
970975

0 commit comments

Comments
 (0)