Skip to content

Commit

Permalink
Fix FloatFirstVectorAggregationTest (#16165)
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshSingla committed Mar 19, 2024
1 parent 0a42342 commit e3b75ac
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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};



Expand Down Expand Up @@ -130,7 +128,7 @@ public int getCurrentVectorSize()
@Override
public Object[] getObjectVector()
{
return null_pairs;
return nullPairs;
}

@Override
Expand Down Expand Up @@ -287,7 +285,7 @@ public void aggregateNulls1()
target1.aggregate(buf, 0, 0, VALUES.length);
Pair<Long, Float> result = (Pair<Long, Float>) target1.get(buf, 0);
Assert.assertEquals(Long.MAX_VALUE, result.lhs.longValue());
Assert.assertNull(result.rhs);
Assert.assertEquals(NullHandling.defaultFloatValue(), result.rhs);
}

@Test
Expand Down

0 comments on commit e3b75ac

Please sign in to comment.