Skip to content

Commit

Permalink
fix s3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp committed Aug 28, 2022
1 parent 50fffc4 commit b1b1a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions rust/src/action/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ impl MetaData {

/// Represents a tombstone (deleted file) in the Delta log.
/// This is a top-level action in Delta log entries.
#[derive(Serialize, Deserialize, Clone, Eq, Debug)]
#[derive(Serialize, Deserialize, Clone, Eq, Debug, Default)]
#[serde(rename_all = "camelCase")]
pub struct Remove {
/// The path of the file that is removed from the table.
Expand Down Expand Up @@ -754,20 +754,6 @@ impl PartialEq for Remove {
}
}

impl Default for Remove {
fn default() -> Self {
Remove {
path: String::default(),
deletion_timestamp: None,
data_change: true,
extended_file_metadata: Some(false),
partition_values: None,
size: None,
tags: None,
}
}
}

impl Remove {
#[cfg(feature = "parquet")]
fn from_parquet_record(record: &parquet::record::Row) -> Result<Self, ActionError> {
Expand Down
1 change: 1 addition & 0 deletions rust/tests/s3_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ mod s3 {
path: "part-00006-63ce9deb-bc0f-482d-b9a1-7e717b67f294-c000.snappy.parquet".to_string(),
deletion_timestamp: Some(1587968596250),
data_change: true,
extended_file_metadata: None,
..Default::default()
}));
}
Expand Down

0 comments on commit b1b1a68

Please sign in to comment.