@@ -203,7 +203,7 @@ async fn main() -> anyhow::Result<()> {
203203 . iter ( )
204204 . any ( |( idx, f, _) | * idx == query_idx && * f == * format)
205205 {
206- plans_mut. push ( ( query_idx, * format, plan . clone ( ) ) ) ;
206+ plans_mut. push ( ( query_idx, * format, Arc :: clone ( & plan ) ) ) ;
207207 }
208208 }
209209
@@ -252,7 +252,7 @@ async fn register_benchmark_tables<B: Benchmark + ?Sized>(
252252 let pattern = benchmark. pattern ( table. name , format) ;
253253 let table_url = ListingTableUrl :: try_new ( benchmark_base. clone ( ) , pattern) ?;
254254
255- let mut listing_options = ListingOptions :: new ( file_format . clone ( ) )
255+ let mut listing_options = ListingOptions :: new ( Arc :: clone ( & file_format ) )
256256 . with_session_config_options ( session. state ( ) . config ( ) ) ;
257257 if benchmark. dataset_name ( ) == "polarsignals" && format == Format :: Parquet {
258258 // Work around a DataFusion bug (fixed in 53.0.0) where the
@@ -304,8 +304,10 @@ async fn register_v2_tables<B: Benchmark + ?Sized>(
304304 . runtime_env ( )
305305 . object_store ( table_url. object_store ( ) ) ?;
306306
307- let fs: vortex:: io:: filesystem:: FileSystemRef =
308- Arc :: new ( ObjectStoreFileSystem :: new ( store. clone ( ) , SESSION . handle ( ) ) ) ;
307+ let fs: vortex:: io:: filesystem:: FileSystemRef = Arc :: new ( ObjectStoreFileSystem :: new (
308+ Arc :: clone ( & store) ,
309+ SESSION . handle ( ) ,
310+ ) ) ;
309311 let base_prefix = benchmark_base. path ( ) . trim_start_matches ( '/' ) . to_string ( ) ;
310312 let fs = fs. with_prefix ( base_prefix) ;
311313
@@ -416,7 +418,7 @@ pub async fn execute_query(
416418 . create_physical_plan ( )
417419 . with_labelset ( get_labelset_from_global ( ) )
418420 . await ?;
419- let result = collect ( plan . clone ( ) , task_ctx)
421+ let result = collect ( Arc :: clone ( & plan ) , task_ctx)
420422 . with_labelset ( get_labelset_from_global ( ) )
421423 . await ?;
422424
0 commit comments