Skip to content

Commit 774c6ea

Browse files
authored
Create the mapping explicitly, otherwise for 0 documents indices (#118015)
the mapping will not contain the "value" field
1 parent 4efe696 commit 774c6ea

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,6 @@ tests:
230230
- class: org.elasticsearch.xpack.esql.plugin.ClusterRequestTests
231231
method: testFallbackIndicesOptions
232232
issue: https://github.com/elastic/elasticsearch/issues/117937
233-
- class: org.elasticsearch.xpack.esql.qa.single_node.RequestIndexFilteringIT
234-
method: testFieldExistsFilter_KeepWildcard
235-
issue: https://github.com/elastic/elasticsearch/issues/117935
236-
- class: org.elasticsearch.xpack.esql.qa.multi_node.RequestIndexFilteringIT
237-
method: testFieldExistsFilter_KeepWildcard
238-
issue: https://github.com/elastic/elasticsearch/issues/117935
239233
- class: org.elasticsearch.xpack.ml.integration.RegressionIT
240234
method: testTwoJobsWithSameRandomizeSeedUseSameTrainingSet
241235
issue: https://github.com/elastic/elasticsearch/issues/117805

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RequestIndexFilteringTestCase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void testFieldExistsFilter_KeepWildcard() throws IOException {
101101
indexTimestampData(docsTest1, "test1", "2024-11-26", "id1");
102102
indexTimestampData(docsTest2, "test2", "2023-11-26", "id2");
103103

104-
// filter includes only test1. Columns are rows of test2 are filtered out
104+
// filter includes only test1. Columns and rows of test2 are filtered out
105105
RestEsqlTestCase.RequestObjectBuilder builder = existsFilter("id1").query("FROM test*");
106106
Map<String, Object> result = runEsql(builder);
107107
assertMap(
@@ -253,6 +253,9 @@ protected void indexTimestampData(int docs, String indexName, String date, Strin
253253
"@timestamp": {
254254
"type": "date"
255255
},
256+
"value": {
257+
"type": "long"
258+
},
256259
"%differentiator_field_name%": {
257260
"type": "integer"
258261
}

0 commit comments

Comments
 (0)