Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ tests:
- class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
method: test
issue: https://github.com/elastic/elasticsearch/issues/131154
- class: org.elasticsearch.xpack.esql.ccq.MultiClustersIT
method: testNotLikeListKeyword
issue: https://github.com/elastic/elasticsearch/issues/131155
- class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceDiskSpaceTests
method: testEnqueuedMergeTasksAreUnblockedWhenEstimatedMergeSizeChanges
issue: https://github.com/elastic/elasticsearch/issues/131165
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,16 @@ public void testNotLikeListKeyword() throws Exception {
""", includeCCSMetadata);
var columns = List.of(Map.of("name", "c", "type", "long"), Map.of("name", "_index", "type", "keyword"));
Predicate<Doc> filter = d -> false == (d.color.contains("blue") || d.color.contains("red"));
var values = List.of(
List.of((int) remoteDocs.stream().filter(filter).count(), REMOTE_CLUSTER_NAME + ":" + remoteIndex),
List.of((int) localDocs.stream().filter(filter).count(), localIndex)
);

var values = new ArrayList<>();
int remoteCount = (int) remoteDocs.stream().filter(filter).count();
int localCount = (int) localDocs.stream().filter(filter).count();
if (remoteCount > 0) {
values.add(List.of(remoteCount, REMOTE_CLUSTER_NAME + ":" + remoteIndex));
}
if (localCount > 0) {
values.add(List.of(localCount, localIndex));
}
assertResultMapForLike(includeCCSMetadata, result, columns, values, false, true);
}

Expand Down