Skip to content

Commit

Permalink
fix(log-store): ensure UpdateDelete and UpdateInsert in the same chunk (
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 authored Jun 20, 2024
1 parent 7df77a4 commit 5c0ecf3
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 85 deletions.
4 changes: 4 additions & 0 deletions src/common/src/util/chunk_coalesce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ impl DataChunkBuilder {
self.buffered_count
}

pub fn can_append(&self, count: usize) -> bool {
self.buffered_count + count <= self.batch_size
}

pub fn num_columns(&self) -> usize {
self.data_types.len()
}
Expand Down
Loading

0 comments on commit 5c0ecf3

Please sign in to comment.