Skip to content

Commit

Permalink
Reinstantiate join order (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan authored Dec 19, 2024
1 parent 167bbf9 commit 4ea309f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ballista/scheduler/src/state/execution_graph/execution_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH};

use datafusion::physical_optimizer::aggregate_statistics::AggregateStatistics;
use datafusion::physical_optimizer::join_selection::JoinSelection;
use datafusion::physical_optimizer::PhysicalOptimizerRule;
use datafusion::physical_plan::display::DisplayableExecutionPlan;
use datafusion::physical_plan::metrics::{MetricValue, MetricsSet};
Expand Down Expand Up @@ -359,12 +360,9 @@ impl UnresolvedStage {
&input_locations,
)?;

// TODO reinstate this logic once https://github.com/apache/datafusion/issues/10978
// is fixed
// Optimize join order and statistics based on new resolved statistics
// let optimize_join = JoinSelection::new();
// let config = SessionConfig::default();
// let plan = optimize_join.optimize(plan, config.options())?;
let optimize_join = JoinSelection::new();
let config = SessionConfig::default();
let plan = optimize_join.optimize(plan, config.options())?;

let optimize_aggregate = AggregateStatistics::new();
let plan =
Expand Down

0 comments on commit 4ea309f

Please sign in to comment.