wirybeaver commented on code in PR #2749:
URL:
https://github.com/apache/datafusion-ballista/pull/2749#discussion_r4646285053
##########
ballista/scheduler/src/state/aqe/mod.rs:
##########
@@ -657,6 +678,24 @@ impl AdaptiveExecutionGraph {
}
});
+ if let (Some(id), Some(registry)) = (running_stage_id, &mut
self.runtime_filters)
+ {
+ let plan = self.stages[&id].plan_arc();
+ let prepared = match registry.prepare(id, plan.clone(),
&self.stages) {
+ Ok(plan) => plan,
+ Err(error) => {
+ log::warn!(
+ "Runtime filter unavailable for stage {id}; bypassing:
{error}"
+ );
+ plan
+ }
+ };
+ let ExecutionStage::Running(stage) =
self.stages.get_mut(&id).unwrap() else {
+ unreachable!()
+ };
+ stage.plan = prepared;
Review Comment:
Done. `RunningStage::replace_plan` now refreshes the cached metrics count
when the plan changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]