Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit 00b8f14

Browse files
committed
derive Clone for ChunkedArray and Column
1 parent 24b23f0 commit 00b8f14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/table.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use arrow::builder::*;
55
use arrow::datatypes::*;
66
use arrow::record_batch::RecordBatch;
77

8+
#[derive(Clone)]
89
pub struct ChunkedArray {
910
chunks: Vec<Arc<Array>>,
1011
num_rows: usize,
@@ -126,6 +127,7 @@ column_to_arrays!(column_to_arrays_str, BinaryArray);
126127
// }
127128

128129
/// A column data structure consisting of a `Field` and `ChunkedArray`
130+
#[derive(Clone)]
129131
pub struct Column {
130132
pub(crate) data: ChunkedArray,
131133
field: arrow::datatypes::Field,

0 commit comments

Comments
 (0)