Skip to content

Commit

Permalink
fix: Only initialize shape and scratch-shape if this is a brand n…
Browse files Browse the repository at this point in the history
…ew Combiner, otherwise keep the schema around to reduce spurious logging
  • Loading branch information
jshearer committed Aug 4, 2023
1 parent 35e3677 commit 8601c59
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/derive/src/combine_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ impl cgo::Service for API {

self.state = Some(State {
combiner,
shape: Shape {
type_: types::INVALID,
..Default::default()
},
scratch_shape: Shape {
type_: types::INVALID,
..Default::default()
},
shape: self
.state
.as_ref()
.map_or(Shape::invalid(), |state| state.shape.clone()),
scratch_shape: self
.state
.as_ref()
.map_or(Shape::invalid(), |state| state.scratch_shape.clone()),
fields_ex,
key_ex,
uuid_placeholder_ptr,
Expand Down

0 comments on commit 8601c59

Please sign in to comment.