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 0aa2938 commit 513ba7aCopy full SHA for 513ba7a
datafusion/core/src/physical_planner.rs
@@ -2093,7 +2093,15 @@ impl DefaultPhysicalPlanner {
2093
"Optimized physical plan:\n{}\n",
2094
displayable(new_plan.as_ref()).indent(false)
2095
);
2096
- debug!("Detailed optimized physical plan:\n{new_plan:?}");
+
2097
+ // Don't print new_plan directly, as that may overflow the stack.
2098
+ // For example:
2099
+ // thread 'tokio-runtime-worker' has overflowed its stack
2100
+ // fatal runtime error: stack overflow, aborting
2101
+ debug!(
2102
+ "Detailed optimized physical plan:\n{}\n",
2103
+ displayable(new_plan.as_ref()).indent(true)
2104
+ );
2105
Ok(new_plan)
2106
}
2107
0 commit comments