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 ffbc38b commit 9c982b1Copy full SHA for 9c982b1
test/framework/src/main/java/org/elasticsearch/ingest/RandomDocumentPicks.java
@@ -40,7 +40,12 @@ public static String randomFieldName(Random random) {
40
if (i > 0) {
41
fieldName.append('.');
42
}
43
- fieldName.append(randomString(random));
+ String pathSegment;
44
+ // can't contain a dot since might lead to invalid empty segment, e.g. `one..two.three`
45
+ do {
46
+ pathSegment = randomString(random);
47
+ } while (pathSegment.contains("."));
48
+ fieldName.append(pathSegment);
49
50
if (numLevels > 1) {
51
0 commit comments