Skip to content

Commit 625399f

Browse files
committed
Merge branch 'main' into gabrielmusat/simplification
2 parents 700b1de + b728287 commit 625399f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/execution_plans/stage.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,15 @@ impl ExecutionPlan for StageExec {
262262
) -> Result<datafusion::execution::SendableRecordBatchStream> {
263263
let channel_resolver = get_distributed_channel_resolver(context.session_config())?;
264264

265-
let assigned_stage = self
266-
.try_assign_urls(&channel_resolver.get_urls()?)
265+
let stage = self
266+
.as_any()
267+
.downcast_ref::<StageExec>()
268+
.expect("Unwrapping myself should always work");
269+
270+
let urls = channel_resolver.get_urls()?;
271+
272+
let assigned_stage = stage
273+
.try_assign_urls(&urls)
267274
.map(Arc::new)
268275
.map_err(|e| DataFusionError::Execution(e.to_string()))?;
269276

0 commit comments

Comments
 (0)