Skip to content

Commit

Permalink
bug fix RateAndMinMaxOverTimeH range function
Browse files Browse the repository at this point in the history
  • Loading branch information
vishramachandran committed Nov 23, 2024
1 parent e0a8788 commit ceac1d7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,13 @@ class RateAndMinMaxOverTimeFuncHD(maxColId: Int, minColId: Int) extends ChunkedR
maxFunc.reset()
minFunc.reset()
}
final def apply(endTimestamp: Long, sampleToEmit: TransientHistMaxMinRow): Unit = {
sampleToEmit.setValues(endTimestamp, hFunc.h)

override def apply(windowStart: Long, windowEnd: Long, sampleToEmit: TransientHistMaxMinRow): Unit = {
hFunc.apply(windowStart, windowEnd, sampleToEmit)
sampleToEmit.setDouble(2, maxFunc.max)
sampleToEmit.setDouble(3, minFunc.min)
}
final def apply(endTimestamp: Long, sampleToEmit: TransientHistMaxMinRow): Unit = ??? // should not be invoked

import BinaryVector.BinaryVectorPtr

Expand Down

0 comments on commit ceac1d7

Please sign in to comment.