Skip to content

Commit cc07145

Browse files
author
Hendrik Muhs
authored
[CI][Transform] fix GroupByOptimizerTests randomization failure part 2 (#76009)
avoid clashing field name by using a unique prefix fixes #75957
1 parent 2b97cc8 commit cc07145

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/GroupByOptimizerTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public void testOneGroupBy() {
4343
public void testOrderByType() {
4444
Map<String, SingleGroupSource> groups = new LinkedHashMap<>();
4545

46-
groups.put("terms1", randomTermsGroupSourceNoScript());
47-
groups.put("date1", randomDateHistogramGroupSourceNoScript());
48-
groups.put("terms2", randomTermsGroupSourceNoScript());
49-
groups.put("date2", randomDateHistogramGroupSourceNoScript());
50-
groups.put("hist1", randomHistogramGroupSourceNoScript());
46+
groups.put("terms1", randomTermsGroupSourceNoScript("t1"));
47+
groups.put("date1", randomDateHistogramGroupSourceNoScript("d1"));
48+
groups.put("terms2", randomTermsGroupSourceNoScript("t2"));
49+
groups.put("date2", randomDateHistogramGroupSourceNoScript("d2"));
50+
groups.put("hist1", randomHistogramGroupSourceNoScript("h1"));
5151
groups.put("geo1", randomGeoTileGroupSource());
52-
groups.put("hist2", randomHistogramGroupSourceNoScript());
52+
groups.put("hist2", randomHistogramGroupSourceNoScript("h1"));
5353

5454
List<String> groupNames = GroupByOptimizer.reorderGroups(Collections.unmodifiableMap(groups), Collections.emptySet())
5555
.stream()

0 commit comments

Comments
 (0)