Skip to content

Commit fa6845b

Browse files
ES|QL: fix generative tests
1 parent 061a751 commit fa6845b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,6 @@ tests:
441441
- class: org.elasticsearch.action.admin.cluster.state.TransportClusterStateActionDisruptionIT
442442
method: testLocalRequestWaitsForMetadata
443443
issue: https://github.com/elastic/elasticsearch/issues/127466
444-
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
445-
method: test
446-
issue: https://github.com/elastic/elasticsearch/issues/127536
447444
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
448445
method: test {union_types.MultiIndexSortIpStringEval ASYNC}
449446
issue: https://github.com/elastic/elasticsearch/issues/127537

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative/EsqlQueryGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ private static String keep(List<Column> previousOutput) {
226226
private static String randomName(List<Column> previousOutput) {
227227
String result = randomRawName(previousOutput);
228228
if (result.isEmpty() // bug https://github.com/elastic/elasticsearch/issues/125870, we'll manage it as an error later
229+
|| result.contains("<")
230+
|| result.contains(">")
229231
|| (randomBoolean() && result.contains("*") == false)) {
230232
result = "`" + result + "`";
231233
}

0 commit comments

Comments
 (0)