File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
integration_tests/tests/shared_tests Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,9 @@ impl MergeAppendAction {
106
106
}
107
107
108
108
/// Add data files to the snapshot.
109
- pub fn add_data_files (
110
- & mut self ,
111
- data_files : impl IntoIterator < Item = DataFile > ,
112
- ) -> Result < & mut Self > {
109
+ pub fn add_data_files ( mut self , data_files : impl IntoIterator < Item = DataFile > ) -> Self {
113
110
self . added_data_files . extend ( data_files) ;
114
- Ok ( self )
111
+ self
115
112
}
116
113
}
117
114
Original file line number Diff line number Diff line change @@ -173,10 +173,7 @@ async fn test_append_data_file() {
173
173
// append data file with merge append, 4 data file will be merged to two manifest
174
174
let data_file = write_new_data_file ( & table) . await ;
175
175
let tx = Transaction :: new ( & table) ;
176
- let mut merge_append_action = tx. merge_append ( ) . unwrap ( ) ;
177
- merge_append_action
178
- . add_data_files ( data_file. clone ( ) )
179
- . unwrap ( ) ;
176
+ let merge_append_action = tx. merge_append ( ) . unwrap ( ) . add_data_files ( data_file. clone ( ) ) ;
180
177
let tx = merge_append_action. apply ( tx) . unwrap ( ) ;
181
178
table = tx. commit ( & rest_catalog) . await . unwrap ( ) ;
182
179
// Check manifest file
You can’t perform that action at this time.
0 commit comments