From 2989e1ff7851c717af3c500d2d470e4fbe2d14da Mon Sep 17 00:00:00 2001 From: Xiangpeng Hao Date: Mon, 11 Nov 2024 21:40:21 -0600 Subject: [PATCH] better visualize physical plan --- src/query_results.rs | 243 ++++++++++++++++++++----------------------- 1 file changed, 112 insertions(+), 131 deletions(-) diff --git a/src/query_results.rs b/src/query_results.rs index bfae934..6db6d65 100644 --- a/src/query_results.rs +++ b/src/query_results.rs @@ -6,7 +6,10 @@ use arrow::record_batch::RecordBatch; use datafusion::{ common::cast::{as_binary_array, as_binary_view_array, as_string_view_array}, logical_expr::LogicalPlan, - physical_plan::{accept, ExecutionPlan, ExecutionPlanVisitor}, + physical_plan::{ + accept, display::DisplayableExecutionPlan, DisplayFormatType, ExecutionPlan, + ExecutionPlanVisitor, + }, }; use leptos::*; @@ -41,16 +44,6 @@ pub fn QueryResults( > "Logical Plan" -