We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8e565 commit bbb5cc7Copy full SHA for bbb5cc7
datafusion/core/src/physical_planner.rs
@@ -2135,7 +2135,15 @@ impl DefaultPhysicalPlanner {
2135
"Optimized physical plan:\n{}\n",
2136
displayable(new_plan.as_ref()).indent(false)
2137
);
2138
- debug!("Detailed optimized physical plan:\n{new_plan:?}");
+
2139
+ // Don't print new_plan directly, as that may overflow the stack.
2140
+ // For example:
2141
+ // thread 'tokio-runtime-worker' has overflowed its stack
2142
+ // fatal runtime error: stack overflow, aborting
2143
+ debug!(
2144
+ "Detailed optimized physical plan:\n{}\n",
2145
+ displayable(new_plan.as_ref()).indent(true)
2146
+ );
2147
Ok(new_plan)
2148
}
2149
0 commit comments