Use derive(Default) for HiveFormat (#348)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen 2021-09-10 00:24:17 +08:00 committed by GitHub
parent d2d4fc0c58
commit 10ec257e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1559,7 +1559,7 @@ pub enum HiveIOFormat {
},
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct HiveFormat {
pub row_format: Option<HiveRowFormat>,
@ -1567,16 +1567,6 @@ pub struct HiveFormat {
pub location: Option<String>,
}
impl Default for HiveFormat {
fn default() -> Self {
HiveFormat {
row_format: None,
location: None,
storage: None,
}
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct SqlOption {