Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardBang committed Apr 8, 2021
1 parent 7f9fcc2 commit 9827fa7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ public static ZoneId getShiftTimeZone(LogicalType timeAttributeType, TableConfig
*/
public static boolean isWindowFired(
long windowEnd, long currentProgress, ZoneId shiftTimeZone) {
// Long.MAX_VALUE is a flag of min window end, directly return it
if (windowEnd == Long.MAX_VALUE) {
return false;
}
long windowTriggerTime = toEpochMillsForTimer(windowEnd - 1, shiftTimeZone);
return currentProgress >= windowTriggerTime;
}
Expand Down

0 comments on commit 9827fa7

Please sign in to comment.