diff --git a/rust/src/action/mod.rs b/rust/src/action/mod.rs index 49404b6795..68cee62df8 100644 --- a/rust/src/action/mod.rs +++ b/rust/src/action/mod.rs @@ -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. @@ -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 { diff --git a/rust/tests/s3_test.rs b/rust/tests/s3_test.rs index 54e217b427..e7f1010abb 100644 --- a/rust/tests/s3_test.rs +++ b/rust/tests/s3_test.rs @@ -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() })); }