@@ -38,11 +38,12 @@ pub const UNASSIGNED_SNAPSHOT_ID: i64 = -1;
3838
3939/// Reference to [`Snapshot`].
4040pub type SnapshotRef = Arc < Snapshot > ;
41- #[ derive( Debug , Serialize , Deserialize , PartialEq , Eq , Clone ) ]
41+ #[ derive( Debug , Default , Serialize , Deserialize , PartialEq , Eq , Clone ) ]
4242#[ serde( rename_all = "lowercase" ) ]
4343/// The operation field is used by some operations, like snapshot expiration, to skip processing certain snapshots.
4444pub enum Operation {
4545 /// Only data files were added and no files were removed.
46+ #[ default]
4647 Append ,
4748 /// Data and delete files were added and removed without changing table data;
4849 /// i.e., compaction, changing the data file format, or relocating data files.
@@ -75,12 +76,6 @@ pub struct Summary {
7576 pub additional_properties : HashMap < String , String > ,
7677}
7778
78- impl Default for Operation {
79- fn default ( ) -> Operation {
80- Self :: Append
81- }
82- }
83-
8479#[ derive( Debug , PartialEq , Eq , Clone ) ]
8580/// Row range of a snapshot, contains first_row_id and added_rows_count.
8681pub struct SnapshotRowRange {
0 commit comments