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++) {
index = i;
final long earliestTime = timeVector[index];
if (earliestTime > firstTime) {
if (earliestTime >= firstTime) {
break;
}
if (earliestTime < firstTime) {
firstTime = earliestTime;
if (useDefault || nullValueVector == null || !nullValueVector[index]) {
updateTimeWithValue(buf, position, firstTime, index);
} else {
updateTimeWithNull(buf, position, firstTime);
}
firstTime = earliestTime;
if (useDefault || nullValueVector == null || !nullValueVector[index]) {
updateTimeWithValue(buf, position, firstTime, index);
} else {
updateTimeWithNull(buf, position, firstTime);
}
}
}