milenkovicm commented on code in PR #1752:
URL:
https://github.com/apache/datafusion-ballista/pull/1752#discussion_r3318133726
##########
ballista/scheduler/src/state/aqe/execution_plan/exchange.rs:
##########
@@ -98,8 +103,38 @@ impl ExchangeExec {
plan_id,
Arc::new(AtomicI64::new(-1)),
Arc::new(Mutex::new(None)),
+ false,
)
}
+ /// new broadcast exchange
+ pub fn new_broadcast(
+ input: Arc<dyn ExecutionPlan>,
+ partitioning: Option<Partitioning>,
+ plan_id: usize,
+ ) -> Self {
+ Self::new_with_details(
+ input,
+ partitioning,
+ plan_id,
+ Arc::new(AtomicI64::new(-1)),
+ Arc::new(Mutex::new(None)),
+ true,
+ )
+ }
+
+ pub fn to_broadcast(&self, plan_id: usize) -> Self {
+ Self {
+ input: self.input.clone(),
+ properties: self.properties.clone(),
Review Comment:
make sense
--
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]