mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
Revert "Fix FloatFirstVectorAggregationTest"
This reverts commit c40bb2c8f071043a87ede54d9dc56d024774ccfd.
This commit is contained in:
parent
c40bb2c8f0
commit
f5c5573da8
@ -64,7 +64,9 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest
|
|||||||
new SerializablePairLongFloat(2345300L, 4.2F)
|
new SerializablePairLongFloat(2345300L, 4.2F)
|
||||||
};
|
};
|
||||||
|
|
||||||
private final SerializablePairLongFloat[] nullPairs = {null, null, null, null};
|
private final SerializablePairLongFloat[] null_pairs = {
|
||||||
|
null, null, null, null
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -128,7 +130,7 @@ public class FloatFirstVectorAggregationTest extends InitializedNullHandlingTest
|
|||||||
@Override
|
@Override
|
||||||
public Object[] getObjectVector()
|
public Object[] getObjectVector()
|
||||||
{
|
{
|
||||||
return nullPairs;
|
return null_pairs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -285,7 +287,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.assertEquals(NullHandling.defaultFloatValue(), result.rhs);
|
Assert.assertNull(result.rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user