This is an automated email from the ASF dual-hosted git repository. sunchao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push: new 93e2686 ARROW-5755: [Rust] [Parquet] Derive clone for Type. 93e2686 is described below commit 93e268684e28aba51c50fc128fb02ba886ae698c Author: Renjie Liu <liurenjie2...@gmail.com> AuthorDate: Thu Jun 27 19:32:14 2019 -0700 ARROW-5755: [Rust] [Parquet] Derive clone for Type. Derive clone for type. Author: Renjie Liu <liurenjie2...@gmail.com> Closes #4719 from liurenjie1024/arrow-5755 and squashes the following commits: 0a6983675 <Renjie Liu> Derive clone for type. --- rust/parquet/src/schema/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/parquet/src/schema/types.rs b/rust/parquet/src/schema/types.rs index f40934f..08dd2e1 100644 --- a/rust/parquet/src/schema/types.rs +++ b/rust/parquet/src/schema/types.rs @@ -38,7 +38,7 @@ pub type ColumnDescPtr = Rc<ColumnDescriptor>; /// Used to describe primitive leaf fields and structs, including top-level schema. /// Note that the top-level schema type is represented using `GroupType` whose /// repetition is `None`. -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum Type { PrimitiveType { basic_info: BasicTypeInfo, @@ -458,7 +458,7 @@ impl<'a> GroupTypeBuilder<'a> { /// Basic type info. This contains information such as the name of the type, /// the repetition level, the logical type and the kind of the type (group, primitive). -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct BasicTypeInfo { name: String, repetition: Option<Repetition>,