Skip to content

Commit 533c968

Browse files
committed
Update WindowedDStream.scala
update the content of Exception when windowDuration is not multiple of parent.slideDuration
1 parent 1fa48d9 commit 533c968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streaming/src/main/scala/org/apache/spark/streaming/dstream/WindowedDStream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WindowedDStream[T: ClassTag](
3232
extends DStream[T](parent.ssc) {
3333

3434
if (!_windowDuration.isMultipleOf(parent.slideDuration)) {
35-
throw new Exception("The window duration of windowed DStream (" + _slideDuration + ") " +
35+
throw new Exception("The window duration of windowed DStream (" + _windowDuration + ") " +
3636
"must be a multiple of the slide duration of parent DStream (" + parent.slideDuration + ")")
3737
}
3838

0 commit comments

Comments
 (0)