Skip to content

Commit fbd19a9

Browse files
committed
Suppres two more tests
1 parent 77db9f4 commit fbd19a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/BlockBuilderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public void testCrankyConstantBlock() {
183183
RandomBlock random = RandomBlock.randomBlock(elementType, 1, false, 1, 1, 0, 0);
184184
builder.copyFrom(random.block(), 0, random.block().getPositionCount());
185185
try (Block built = builder.build()) {
186-
if (built instanceof AggregateMetricDoubleArrayBlock == false) {
186+
if (built instanceof AggregateMetricDoubleArrayBlock == false && built instanceof DateRangeArrayBlock == false) {
187187
assertThat(built.asVector().isConstant(), is(true));
188188
}
189189
assertThat(built, equalTo(random.block()));

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/data/VectorFixedBuilderTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public static List<Object[]> params() {
3434
|| elementType == ElementType.NULL
3535
|| elementType == ElementType.DOC
3636
|| elementType == ElementType.BYTES_REF
37-
|| elementType == ElementType.AGGREGATE_METRIC_DOUBLE) {
37+
|| elementType == ElementType.AGGREGATE_METRIC_DOUBLE
38+
|| elementType == ElementType.DATE_RANGE) {
3839
continue;
3940
}
4041
params.add(new Object[] { elementType });

0 commit comments

Comments
 (0)