AssHero opened a new pull request, #2895:
URL: https://github.com/apache/arrow-datafusion/pull/2895

   # Which issue does this PR close?
   
   Closes #2894 
   
    # Rationale for this change
   Add session option 'datafusion.explain.logical_plan'. 
   when set to true, the explain statement will only print logical plans. We 
can set environment variable DATAFUSION_EXPLAIN_LOGICAL_PLAN to make this value 
take effect.
   
   For example:
   explain select count(*) from (values ('a', 1, 100), ('a', 2, 150)) as t 
(c1,c2,c3);
   
   
+--------------+----------------------------------------------------------------------------------+
   | plan_type    | plan                                                        
                     |
   
+--------------+----------------------------------------------------------------------------------+
   | logical_plan | Projection: #COUNT(UInt8(1))                                
                     |
   |              |   Aggregate: groupBy=[[]], aggr=[[COUNT(UInt8(1))]]         
                     |
   |              |     Values: (Utf8("a"), Int64(1), Int64(100)), (Utf8("a"), 
Int64(2), Int64(150)) |
   
+--------------+----------------------------------------------------------------------------------+
   
   # What changes are included in this PR?
   add session option 'datafusion.explain.logical_plan'. in 
datafusion/core/src/config.rs
   use this option to control the output of explain statement in 
datafusion/core/src/physical_plan/planner.rs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to