Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Apr 22, 2024
1 parent 7a7c92d commit 2305d2c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ballista/scheduler/src/state/execution_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use datafusion::physical_plan::display::DisplayableExecutionPlan;
use datafusion::physical_plan::{accept, ExecutionPlan, ExecutionPlanVisitor};
use datafusion::prelude::SessionContext;
use datafusion_proto::logical_plan::AsLogicalPlan;
use log::{error, info, warn};
use log::{debug, error, info, warn};

use ballista_core::error::{BallistaError, Result};
use ballista_core::execution_plans::{ShuffleWriterExec, UnresolvedShuffleExec};
Expand Down Expand Up @@ -150,6 +150,16 @@ impl ExecutionGraph {
let output_partitions = plan.output_partitioning().partition_count();

let shuffle_stages = planner.plan_query_stages(job_id, plan)?;
debug!(
"Planned shuffle stages: \n{}",
shuffle_stages
.iter()
.map(|stage| DisplayableExecutionPlan::new(stage.as_ref())
.indent(true)
.to_string())
.collect::<Vec<_>>()
.join("\n")
);

let builder = ExecutionStageBuilder::new();
let stages = builder.build(shuffle_stages)?;
Expand Down

0 comments on commit 2305d2c

Please sign in to comment.