diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/operator/window.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/operator/window.go b/core/operator/window.go index 610f6e3..3f75d60 100644 --- a/core/operator/window.go +++ b/core/operator/window.go | |||
| @@ -79,6 +79,10 @@ func (o *WindowOperator[IN, OUT]) Process(ctx context.Context, record core.Strea | |||
| 79 | return err | 79 | return err |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | if len(currentWindowState) == 0 { | ||
| 83 | continue | ||
| 84 | } | ||
| 85 | |||
| 82 | // NOTE: this is workaround create inline window, refactor later | 86 | // NOTE: this is workaround create inline window, refactor later |
| 83 | 87 | ||
| 84 | if err := o.userfunc.Apply(ctx, timer.Key, timer.Namespace.(core.Window), currentWindowState, out); err != nil { | 88 | if err := o.userfunc.Apply(ctx, timer.Key, timer.Namespace.(core.Window), currentWindowState, out); err != nil { |
