Skip to content

Commit 77b5a1c

Browse files
Fix PushQueriesIT.testLike() fails (elastic#129668)
Fix an issue where PushQueriesIT.testLike() fails if we randomly generate the empty string as a test value (cherry picked from commit 42047ac)
1 parent c3c6ba3 commit 77b5a1c

File tree

2 files changed

+7
-2
lines changed
  • docs/changelog
  • x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node

2 files changed

+7
-2
lines changed

docs/changelog/129647.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 129647
2+
summary: Fix `PushQueriesIT.testLike()` fails
3+
area: ES|QL
4+
type: bug
5+
issues: []

x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/PushQueriesIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void testCaseInsensitiveEquality() throws IOException {
240240
}
241241

242242
public void testLike() throws IOException {
243-
String value = "v".repeat(between(0, 256));
243+
String value = "v".repeat(between(1, 256));
244244
String esqlQuery = """
245245
FROM test
246246
| WHERE test like "%value*"
@@ -258,7 +258,7 @@ public void testLike() throws IOException {
258258
}
259259

260260
public void testLikeList() throws IOException {
261-
String value = "v".repeat(between(0, 256));
261+
String value = "v".repeat(between(1, 256));
262262
String esqlQuery = """
263263
FROM test
264264
| WHERE test like ("%value*", "abc*")

0 commit comments

Comments
 (0)