Skip to content

Commit

Permalink
chore(cherry-pick): handle missing cache_policy field in OverWindow (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Sep 6, 2023
1 parent 4865ed6 commit 27a7348
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 @@ -74,7 +74,9 @@ impl ExecutorBuilder for OverWindowExecutorBuilder {
state_table,
watermark_epoch: stream.get_watermark_epoch(),
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 27a7348

Please sign in to comment.