mirror of https://github.com/apache/druid.git
1 more change
This commit is contained in:
parent
4c5813d165
commit
67fce5f20e
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue