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
15 changes: 0 additions & 15 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -495,24 +495,9 @@ tests:
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryStopIT
method: testStopQueryLocal
issue: https://github.com/elastic/elasticsearch/issues/133481
- class: org.elasticsearch.compute.data.BasicBlockTests
method: testIntBlock
issue: https://github.com/elastic/elasticsearch/issues/133596
- class: org.elasticsearch.compute.data.BasicBlockTests
method: testDoubleBlock
issue: https://github.com/elastic/elasticsearch/issues/133606
- class: org.elasticsearch.compute.data.BasicBlockTests
method: testBooleanBlock
issue: https://github.com/elastic/elasticsearch/issues/133608
- class: org.elasticsearch.compute.data.BasicBlockTests
method: testLongBlock
issue: https://github.com/elastic/elasticsearch/issues/133618
- class: org.elasticsearch.xpack.esql.inference.rerank.RerankOperatorTests
method: testSimpleCircuitBreaking
issue: https://github.com/elastic/elasticsearch/issues/133619
- class: org.elasticsearch.compute.data.BasicBlockTests
method: testFloatBlock
issue: https://github.com/elastic/elasticsearch/issues/133621
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
method: test
issue: https://github.com/elastic/elasticsearch/issues/133077
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1784,10 +1784,13 @@ public static Block assertDeepCopy(Block block) {
try (Block deepCopy = block.deepCopy(into)) {
assertThat(deepCopy, equalTo(block));

assertThat(
deepCopy.asVector() != null && deepCopy.asVector().isConstant(),
equalTo(block.asVector() != null && block.asVector().isConstant())
);
if (block.asVector() != null && block.asVector().isConstant()) {
/*
* If we were a constant, we will still be one. If we were not a constant,
* deepCopy might make a constant in the rare case that we have a single element array.
*/
assertThat(deepCopy.asVector() != null && deepCopy.asVector().isConstant(), equalTo(true));
}
}
Block untracked = block.deepCopy(TestBlockFactory.getNonBreakingInstance());
assertThat(untracked, equalTo(block));
Expand Down