From c8747e3f5c7878c522041f29823e082e82386a87 Mon Sep 17 00:00:00 2001 From: evenyag Date: Sat, 24 Feb 2024 12:32:30 +0800 Subject: [PATCH] chore: derive copy for DataBatch --- src/mito2/src/memtable/merge_tree/data.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mito2/src/memtable/merge_tree/data.rs b/src/mito2/src/memtable/merge_tree/data.rs index 928014b815ff..9497791d2d3c 100644 --- a/src/mito2/src/memtable/merge_tree/data.rs +++ b/src/mito2/src/memtable/merge_tree/data.rs @@ -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, } @@ -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,