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 9056ad4 commit db2234bCopy full SHA for db2234b
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/IdentifierGenerator.java
@@ -79,15 +79,15 @@ public static String randomIndexPattern(Feature... features) {
79
}
80
81
var pattern = maybeQuote(index.toString());
82
+ if (pattern.contains("|")) {
83
+ pattern = quote(unquoteIndexPattern(pattern));
84
+ }
85
+
86
if (canAdd(Features.CROSS_CLUSTER, features)) {
87
var cluster = maybeQuote(randomIdentifier());
88
pattern = maybeQuote(cluster + ":" + pattern);
89
90
- if (pattern.contains("|") && pattern.endsWith("\"") == false) {
- pattern = quote(unquoteIndexPattern(pattern));
- }
-
91
return pattern;
92
93
0 commit comments