Mute DateHistogramAggregatorTests.testAsSubAgg
(cherry picked from commit 4d050a7a6438a7d102eeef9e03a7d79565bddab7)
This commit is contained in:
parent
920677af6f
commit
92e127e90d
|
@ -171,6 +171,7 @@ public class DateHistogramAggregatorTests extends AggregatorTestCase {
|
|||
);
|
||||
}
|
||||
|
||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/57168")
|
||||
public void testAsSubAgg() throws IOException {
|
||||
KeywordFieldMapper.KeywordFieldType k1ft = new KeywordFieldMapper.KeywordFieldType();
|
||||
k1ft.setName("k1");
|
||||
|
@ -230,7 +231,7 @@ public class DateHistogramAggregatorTests extends AggregatorTestCase {
|
|||
assertThat(ak1adh.getBuckets().stream().map(bucket -> bucket.getKey().toString()).collect(toList()),
|
||||
equalTo(org.elasticsearch.common.collect.List.of("2020-01-01T00:00Z", "2021-01-01T00:00Z")
|
||||
));
|
||||
|
||||
|
||||
StringTerms.Bucket b = terms.getBucketByKey("b");
|
||||
StringTerms bk1 = b.getAggregations().get("k1");
|
||||
StringTerms.Bucket bk1a = bk1.getBucketByKey("a");
|
||||
|
|
Loading…
Reference in New Issue