Skip to content

Commit a944a60

Browse files
committed
upd
1 parent 1989c3d commit a944a60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@ public void testValidQuotingFromIndexPattern() {
631631
}
632632
pattern = cluster + ":" + pattern;
633633
}
634+
if (pattern.contains(":") && pattern.contains("\"") == false) {// quote entire "cluster:index"
635+
pattern = "\"" + pattern + "\"";
636+
}
634637
return pattern;
635638
});
636639

0 commit comments

Comments
 (0)