Skip to content

Commit

Permalink
fix(streaming): handle missing cache_policy field in OverWindow (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored and Li0k committed Sep 15, 2023
1 parent f568ed9 commit 415329c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/src/from_proto/over_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ impl ExecutorBuilder for OverWindowExecutorBuilder {
watermark_epoch: stream.get_watermark_epoch(),
metrics: params.executor_stats,
chunk_size: params.env.config().developer.chunk_size,
cache_policy: OverWindowCachePolicy::from_protobuf(node.get_cache_policy()?),
cache_policy: OverWindowCachePolicy::from_protobuf(
node.get_cache_policy().unwrap_or_default(),
),
})
.boxed())
}
Expand Down

0 comments on commit 415329c

Please sign in to comment.