This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new bbb5cc79de Fix potential overflow when we print verbose physical plan
(#17798)
bbb5cc79de is described below
commit bbb5cc79de3d037d0b06572ff417de7c3d9fe437
Author: Qi Zhu <[email protected]>
AuthorDate: Sat Sep 27 10:15:17 2025 +0800
Fix potential overflow when we print verbose physical plan (#17798)
* change debug to trace for potential overflow
* fix comments.
* fix
---
datafusion/core/src/physical_planner.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/datafusion/core/src/physical_planner.rs
b/datafusion/core/src/physical_planner.rs
index 4a8586b2f9..6b4d2592f6 100644
--- a/datafusion/core/src/physical_planner.rs
+++ b/datafusion/core/src/physical_planner.rs
@@ -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)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]