diff --git a/muted-tests.yml b/muted-tests.yml index 5ffc38633891a..7c9a8149ab6d3 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -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 diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BasicBlockTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BasicBlockTests.java index c89d96f10b14c..e0a18c79307c5 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BasicBlockTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BasicBlockTests.java @@ -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));