mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 19:27:21 +00:00
Use derive(Default) for HiveFormat (#348)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
parent
d2d4fc0c58
commit
10ec257e21
1 changed files with 1 additions and 11 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue