Fix EsqlActionIT.testGroupingStatsOnMissingFields in release tests (#130177)

This commit is contained in:
Luigi Dell'Aquila 2025-06-27 13:35:23 +02:00 committed by GitHub
parent ce74df5c0c
commit 201a8c99e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1680,6 +1680,7 @@ public class EsqlActionIT extends AbstractEsqlIntegTestCase {
}
public void testGroupingStatsOnMissingFields() {
assumeTrue("Pragmas are only allowed in snapshots", Build.current().isSnapshot());
assertAcked(client().admin().indices().prepareCreate("missing_field_index").setMapping("data", "type=long"));
long oneValue = between(1, 1000);
indexDoc("missing_field_index", "1", "data", oneValue);