Skip to content

Commit 133a7c7

Browse files
Generate correct invalid patterns
1 parent 544171b commit 133a7c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,8 @@ public void testInvalidPatternsWithIntermittentQuotes() {
31193119
{
31203120
var randomIndex = randomIndexPattern();
31213121
// Select an invalid char to sneak in.
3122-
char[] invalidChars = { ' ', '/', '<', '>', '?', '|' };
3122+
// Note: some chars like '|' and '"' are excluded to generate a proper invalid name.
3123+
char[] invalidChars = { ' ', '/', '<', '>', '?' };
31233124
var randomInvalidChar = invalidChars[randomIntBetween(0, invalidChars.length - 1)];
31243125

31253126
// Construct the new invalid index pattern.

0 commit comments

Comments
 (0)