Skip to content

Commit 9056ad4

Browse files
committed
Fix testValidFromPattern
1 parent 144ff0c commit 9056ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/IdentifierGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public static String randomIndexPattern(Feature... features) {
8484
pattern = maybeQuote(cluster + ":" + pattern);
8585
}
8686

87-
if (pattern.contains("|") && pattern.contains("\"") == false) {
88-
pattern = quote(pattern);
87+
if (pattern.contains("|") && pattern.endsWith("\"") == false) {
88+
pattern = quote(unquoteIndexPattern(pattern));
8989
}
9090

9191
return pattern;

0 commit comments

Comments
 (0)