Fix FloatFirstVectorAggregationTest (#16165)

This commit is contained in:
Laksh Singla 2024-03-19 17:42:29 +05:30 committed by GitHub
parent 0a42342cef
commit e3b75ac11f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -64,9 +64,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest
new SerializablePairLongFloat(2345300L, 4.2F) new SerializablePairLongFloat(2345300L, 4.2F)
}; };
private final SerializablePairLongFloat[] null_pairs = { private final SerializablePairLongFloat[] nullPairs = {null, null, null, null};
null, null, null, null
};
@ -130,7 +128,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest
@Override @Override
public Object[] getObjectVector() public Object[] getObjectVector()
{ {
return null_pairs; return nullPairs;
} }
@Override @Override
@ -287,7 +285,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest
target1.aggregate(buf, 0, 0, VALUES.length); target1.aggregate(buf, 0, 0, VALUES.length);
Pair<Long, Float> result = (Pair<Long, Float>) target1.get(buf, 0); Pair<Long, Float> result = (Pair<Long, Float>) target1.get(buf, 0);
Assert.assertEquals(Long.MAX_VALUE, result.lhs.longValue()); Assert.assertEquals(Long.MAX_VALUE, result.lhs.longValue());
Assert.assertNull(result.rhs); Assert.assertEquals(NullHandling.defaultFloatValue(), result.rhs);
} }
@Test @Test