mirror of https://github.com/apache/druid.git
commit
d7dd4a2481
|
@ -439,12 +439,15 @@ public class MovingAverageIterableTest extends InitializedNullHandlingTest
|
||||||
|
|
||||||
Assert.assertTrue(iter.hasNext());
|
Assert.assertTrue(iter.hasNext());
|
||||||
result = iter.next();
|
result = iter.next();
|
||||||
Assert.assertEquals("u", (result.getDimension("gender")).get(0));
|
String genderMissingFirst = (result.getDimension("gender")).get(0);
|
||||||
|
Assert.assertTrue("u".equals(genderMissingFirst) || "f".equals(genderMissingFirst));
|
||||||
Assert.assertEquals(JAN_2, (result.getTimestamp()));
|
Assert.assertEquals(JAN_2, (result.getTimestamp()));
|
||||||
|
|
||||||
Assert.assertTrue(iter.hasNext());
|
Assert.assertTrue(iter.hasNext());
|
||||||
result = iter.next();
|
result = iter.next();
|
||||||
Assert.assertEquals("f", (result.getDimension("gender")).get(0));
|
String genderMissingSecond = (result.getDimension("gender")).get(0);
|
||||||
|
Assert.assertTrue("u".equals(genderMissingSecond) || "f".equals(genderMissingSecond));
|
||||||
|
Assert.assertFalse(genderMissingSecond.equals(genderMissingFirst));
|
||||||
Assert.assertEquals(JAN_2, (result.getTimestamp()));
|
Assert.assertEquals(JAN_2, (result.getTimestamp()));
|
||||||
|
|
||||||
Assert.assertFalse(iter.hasNext());
|
Assert.assertFalse(iter.hasNext());
|
||||||
|
|
Loading…
Reference in New Issue