Skip to content
Snippets Groups Projects
Commit 208edaac authored by Tathagata Das's avatar Tathagata Das
Browse files

Fixed condition in InputDStream isTimeValid.

parent 972fe771
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ abstract class InputDStream[T: ClassManifest] (@transient ssc_ : StreamingContex
false // Time not valid
} else {
// Time is valid, but check it it is more than lastValidTime
if (lastValidTime == null || lastValidTime <= time) {
if (lastValidTime != null && time < lastValidTime) {
logWarning("isTimeValid called with " + time + " where as last valid time is " + lastValidTime)
}
lastValidTime = time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment