Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion datafusion/core/src/physical_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,15 @@ impl DefaultPhysicalPlanner {
"Optimized physical plan:\n{}\n",
displayable(new_plan.as_ref()).indent(false)
);
debug!("Detailed optimized physical plan:\n{new_plan:?}");

// Don't print new_plan directly, as that may overflow the stack.
// For example:
// thread 'tokio-runtime-worker' has overflowed its stack
// fatal runtime error: stack overflow, aborting
debug!(
"Detailed optimized physical plan:\n{}\n",
displayable(new_plan.as_ref()).indent(true)
);
Ok(new_plan)
}

Expand Down