diff --git a/crates/iceberg/src/scan.rs b/crates/iceberg/src/scan.rs index 4bb43eca6..4112342ec 100644 --- a/crates/iceberg/src/scan.rs +++ b/crates/iceberg/src/scan.rs @@ -370,7 +370,7 @@ impl TableScan { // used to stream delete files into the DeleteFileManager let (delete_file_tx, delete_file_rx) = channel(concurrency_limit_manifest_entries); - let delete_file_manager = Arc::new(DeleteFileManager::from_receiver(delete_file_rx)); + let delete_file_manager = DeleteFileManager::from_receiver(delete_file_rx); let manifest_list = self.plan_context.get_manifest_list().await?; @@ -593,7 +593,7 @@ struct ManifestFileContext { object_cache: Arc, snapshot_schema: SchemaRef, expression_evaluator_cache: Arc, - delete_file_manager: Arc, + delete_file_manager: DeleteFileManager, } /// Wraps a [`ManifestEntryRef`] alongside the objects that are needed @@ -606,7 +606,7 @@ struct ManifestEntryContext { bound_predicates: Option>, partition_spec_id: i32, snapshot_schema: SchemaRef, - delete_file_manager: Arc, + delete_file_manager: DeleteFileManager, } impl ManifestFileContext { @@ -712,7 +712,7 @@ impl PlanContext { manifest_list: Arc, sender_data: Sender, sender_delete: Sender, - delete_file_manager: Arc, + delete_file_manager: DeleteFileManager, ) -> Result>>> { let manifest_files = manifest_list.entries().iter(); @@ -772,7 +772,7 @@ impl PlanContext { manifest_file: &ManifestFile, partition_filter: Option>, sender: Sender, - delete_file_manager: Arc, + delete_file_manager: DeleteFileManager, ) -> ManifestFileContext { let bound_predicates = if let (Some(ref partition_bound_predicate), Some(snapshot_bound_predicate)) =