@@ -299,7 +299,7 @@ impl<T: 'static + AsExecutionPlan> SchedulerState<T> {
299
299
) ) ) ;
300
300
}
301
301
let value = T :: try_decode ( value. as_slice ( ) ) ?;
302
- let plan = value. try_into_physical_plan ( & ctx) ?;
302
+ let plan = value. try_into_physical_plan ( ctx) ?;
303
303
// let value: PhysicalPlanNode = decode_protobuf(value)?;
304
304
// Ok((&value).try_into()?)
305
305
Ok ( plan)
@@ -366,7 +366,7 @@ impl<T: 'static + AsExecutionPlan> SchedulerState<T> {
366
366
ctx : & ExecutionContext ,
367
367
) -> Result < Option < ( TaskStatus , Arc < dyn ExecutionPlan > ) > > {
368
368
let tasks = self . get_all_tasks ( ) . await ?;
369
- self . assign_next_schedulable_task_inner ( executor_id, tasks, & ctx)
369
+ self . assign_next_schedulable_task_inner ( executor_id, tasks, ctx)
370
370
. await
371
371
}
372
372
@@ -377,7 +377,7 @@ impl<T: 'static + AsExecutionPlan> SchedulerState<T> {
377
377
ctx : & ExecutionContext ,
378
378
) -> Result < Option < ( TaskStatus , Arc < dyn ExecutionPlan > ) > > {
379
379
let job_tasks = self . get_job_tasks ( job_id) . await ?;
380
- self . assign_next_schedulable_task_inner ( executor_id, job_tasks, & ctx)
380
+ self . assign_next_schedulable_task_inner ( executor_id, job_tasks, ctx)
381
381
. await
382
382
}
383
383
@@ -387,7 +387,7 @@ impl<T: 'static + AsExecutionPlan> SchedulerState<T> {
387
387
tasks : HashMap < String , TaskStatus > ,
388
388
ctx : & ExecutionContext ,
389
389
) -> Result < Option < ( TaskStatus , Arc < dyn ExecutionPlan > ) > > {
390
- match self . get_next_schedulable_task ( tasks, & ctx) . await ? {
390
+ match self . get_next_schedulable_task ( tasks, ctx) . await ? {
391
391
Some ( ( status, plan) ) => {
392
392
let mut status = status. clone ( ) ;
393
393
status. status = Some ( task_status:: Status :: Running ( RunningTask {
@@ -413,7 +413,7 @@ impl<T: 'static + AsExecutionPlan> SchedulerState<T> {
413
413
if status. status . is_none ( ) {
414
414
let partition = status. partition_id . as_ref ( ) . unwrap ( ) ;
415
415
let plan = self
416
- . get_stage_plan ( & partition. job_id , partition. stage_id as usize , & ctx)
416
+ . get_stage_plan ( & partition. job_id , partition. stage_id as usize , ctx)
417
417
. await ?;
418
418
419
419
// Let's try to resolve any unresolved shuffles we find
0 commit comments