LuciferYang commented on code in PR #43890:
URL: https://github.com/apache/spark/pull/43890#discussion_r1403908793
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/EventTimeWatermarkSuite.scala:
##########
@@ -74,14 +74,18 @@ class EventTimeWatermarkSuite extends StreamTest with
BeforeAndAfter with Matche
// Make sure `largeValue` will cause overflow if we use a Long sum to calc
avg.
assert(largeValue * largeValue != BigInt(largeValue) * BigInt(largeValue))
val stats =
- EventTimeStats(max = largeValue, min = largeValue, avg = largeValue,
count = largeValue - 1)
+ EventTimeStats(
+ max = largeValue,
+ min = largeValue,
+ avg = largeValue.toDouble,
+ count = largeValue - 1)
Review Comment:
```scala
EventTimeStats(
max = largeValue, min = largeValue, avg = largeValue.toDouble, count =
largeValue - 1)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]