Skip to content

Commit

Permalink
[hotfix][python] Fix the wrong clearing state logic on processing tim…
Browse files Browse the repository at this point in the history
…e window
  • Loading branch information
HuangXingBo committed Jan 3, 2023
1 parent 187e572 commit eb01783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def on_processing_time(self, timestamp, key, namespace):
if trigger_result.is_purge():
self.window_state.clear()

if self.window_assigner.is_event_time() and self.is_cleanup_time(
if not self.window_assigner.is_event_time() and self.is_cleanup_time(
self.trigger_context.window, timestamp):
self.clear_all_state(self.trigger_context.window, self.window_state, merging_windows)

Expand Down

0 comments on commit eb01783

Please sign in to comment.