Skip to content

Commit

Permalink
chore: use range.len()
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Feb 8, 2024
1 parent fef59a1 commit 252f7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mito2/src/memtable/merge_tree/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl DataReader {
) -> Result<Batch> {
let data_batch = self.current.as_ref().unwrap();
let offset = data_batch.range().start;
let length = data_batch.range().end - offset;
let length = data_batch.range().len();
let record_batch = data_batch.record_batch();

let mut builder = BatchBuilder::new(primary_key.to_vec());
Expand Down

0 comments on commit 252f7da

Please sign in to comment.