Skip to content

Commit

Permalink
remove default for PartitionedFile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Aug 6, 2024
1 parent 49ca5cb commit 2b56774
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions datafusion/core/src/datasource/listing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,6 @@ impl From<ObjectMeta> for PartitionedFile {
}
}

impl Default for PartitionedFile {
fn default() -> Self {
Self {
object_meta: ObjectMeta {
location: Path::default(),
last_modified: chrono::Utc.timestamp_nanos(0),
size: 0,
e_tag: None,
version: None,
},
partition_values: Vec::new(),
range: None,
statistics: None,
extensions: None,
}
}
}

#[cfg(test)]
mod tests {
use crate::datasource::listing::ListingTableUrl;
Expand Down

0 comments on commit 2b56774

Please sign in to comment.