1 more change

This commit is contained in:
Soumyava Das 2023-07-19 12:13:33 -07:00
parent 4c5813d165
commit 67fce5f20e
1 changed files with 6 additions and 8 deletions

View File

@ -70,16 +70,14 @@ public abstract class NumericFirstVectorAggregator implements VectorAggregator
for (int i = startRow; i < endRow; i++) { for (int i = startRow; i < endRow; i++) {
index = i; index = i;
final long earliestTime = timeVector[index]; final long earliestTime = timeVector[index];
if (earliestTime > firstTime) { if (earliestTime >= firstTime) {
break; break;
} }
if (earliestTime < firstTime) { firstTime = earliestTime;
firstTime = earliestTime; if (useDefault || nullValueVector == null || !nullValueVector[index]) {
if (useDefault || nullValueVector == null || !nullValueVector[index]) { updateTimeWithValue(buf, position, firstTime, index);
updateTimeWithValue(buf, position, firstTime, index); } else {
} else { updateTimeWithNull(buf, position, firstTime);
updateTimeWithNull(buf, position, firstTime);
}
} }
} }
} }