Skip to content

Commit

Permalink
chore: derive copy for DataBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Feb 24, 2024
1 parent 63d9c09 commit c8747e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mito2/src/memtable/merge_tree/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub(crate) const DATA_INIT_CAP: usize = 8;
pub(crate) struct DataBatchRange {
/// Primary key index of this batch.
pub(crate) pk_index: PkIndex,
/// Start of current primary key inside record batch
/// Start of current primary key inside record batch.
pub(crate) start: usize,
/// End of current primary key inside record batch
/// End of current primary key inside record batch.
pub(crate) end: usize,
}

Expand All @@ -72,7 +72,7 @@ impl DataBatchRange {
}

/// Data part batches returns by `DataParts::read`.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub struct DataBatch<'a> {
/// Record batch of data.
rb: &'a RecordBatch,
Expand Down

0 comments on commit c8747e3

Please sign in to comment.