We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f668a31 commit a2fb5c4Copy full SHA for a2fb5c4
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/IdentifierGenerator.java
@@ -78,16 +78,17 @@ public static String randomIndexPattern(Feature... features) {
78
index.insert(0, "-");
79
}
80
81
- var pattern = maybeQuote(index.toString());
+ var pattern = index.toString();
82
+ if (pattern.contains("|")) {
83
+ pattern = quote(pattern);
84
+ }
85
+ pattern = maybeQuote(pattern);
86
+
87
if (canAdd(Features.CROSS_CLUSTER, features)) {
88
var cluster = maybeQuote(randomIdentifier());
89
pattern = maybeQuote(cluster + ":" + pattern);
90
91
- if (pattern.contains("|") && pattern.contains("\"") == false) {
- pattern = quote(pattern);
- }
-
92
return pattern;
93
94
0 commit comments