From e3b75ac11f5792fe6c633a85c447f54b2bb36d4d Mon Sep 17 00:00:00 2001 From: Laksh Singla Date: Tue, 19 Mar 2024 17:42:29 +0530 Subject: [PATCH] Fix FloatFirstVectorAggregationTest (#16165) --- .../first/FloatFirstVectorAggregationTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/processing/src/test/java/org/apache/druid/query/aggregation/first/FloatFirstVectorAggregationTest.java b/processing/src/test/java/org/apache/druid/query/aggregation/first/FloatFirstVectorAggregationTest.java index 28044de5e4e..a95e89bd32a 100644 --- a/processing/src/test/java/org/apache/druid/query/aggregation/first/FloatFirstVectorAggregationTest.java +++ b/processing/src/test/java/org/apache/druid/query/aggregation/first/FloatFirstVectorAggregationTest.java @@ -64,9 +64,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest new SerializablePairLongFloat(2345300L, 4.2F) }; - private final SerializablePairLongFloat[] null_pairs = { - null, null, null, null - }; + private final SerializablePairLongFloat[] nullPairs = {null, null, null, null}; @@ -130,7 +128,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest @Override public Object[] getObjectVector() { - return null_pairs; + return nullPairs; } @Override @@ -287,7 +285,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest target1.aggregate(buf, 0, 0, VALUES.length); Pair result = (Pair) target1.get(buf, 0); Assert.assertEquals(Long.MAX_VALUE, result.lhs.longValue()); - Assert.assertNull(result.rhs); + Assert.assertEquals(NullHandling.defaultFloatValue(), result.rhs); } @Test