Skip to content

Commit

Permalink
Create the mapping explicitly, otherwise for 0 documents indices (ela…
Browse files Browse the repository at this point in the history
…stic#118015)

the mapping will not contain the "value" field
  • Loading branch information
astefan authored Dec 4, 2024
1 parent 4efe696 commit 774c6ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,6 @@ tests:
- class: org.elasticsearch.xpack.esql.plugin.ClusterRequestTests
method: testFallbackIndicesOptions
issue: https://github.com/elastic/elasticsearch/issues/117937
- class: org.elasticsearch.xpack.esql.qa.single_node.RequestIndexFilteringIT
method: testFieldExistsFilter_KeepWildcard
issue: https://github.com/elastic/elasticsearch/issues/117935
- class: org.elasticsearch.xpack.esql.qa.multi_node.RequestIndexFilteringIT
method: testFieldExistsFilter_KeepWildcard
issue: https://github.com/elastic/elasticsearch/issues/117935
- class: org.elasticsearch.xpack.ml.integration.RegressionIT
method: testTwoJobsWithSameRandomizeSeedUseSameTrainingSet
issue: https://github.com/elastic/elasticsearch/issues/117805
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testFieldExistsFilter_KeepWildcard() throws IOException {
indexTimestampData(docsTest1, "test1", "2024-11-26", "id1");
indexTimestampData(docsTest2, "test2", "2023-11-26", "id2");

// filter includes only test1. Columns are rows of test2 are filtered out
// filter includes only test1. Columns and rows of test2 are filtered out
RestEsqlTestCase.RequestObjectBuilder builder = existsFilter("id1").query("FROM test*");
Map<String, Object> result = runEsql(builder);
assertMap(
Expand Down Expand Up @@ -253,6 +253,9 @@ protected void indexTimestampData(int docs, String indexName, String date, Strin
"@timestamp": {
"type": "date"
},
"value": {
"type": "long"
},
"%differentiator_field_name%": {
"type": "integer"
}
Expand Down

0 comments on commit 774c6ea

Please sign in to comment.