kaka11chen opened a new pull request, #25446:
URL: https://github.com/apache/doris/pull/25446

   ## Proposed changes
   
   Add explain tree functionality which contains fragment ids for profile 
analysis.
   ```
   mysql> explain tree select sum(l_orderkey) from lineitem, orders where 
l_orderkey = o_orderkey;
   
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | Explain String(Nereids Planner)                                            
                                                                                
                                                       |
   
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | [414]:[414: ResultSink]||[Fragment: 0]||VRESULT SINK||   MYSQL_PROTOCAL||  
                                                                                
                                                       |
   | --[414]:[414: VAGGREGATE (merge finalize)]||[Fragment: 0]||cardinality=1|| 
                                                                                
                                                       |
   | ----[411]:[411: VEXCHANGE]||[Fragment: 0]||offset: 0||                     
                                                                                
                                                       |
   | ------[411]:[411: DataStreamSink]||[Fragment: 1]||STREAM DATA SINK||  
EXCHANGE ID: 411||  UNPARTITIONED                                               
                                                            |
   | --------[408]:[408: VAGGREGATE (update serialize)]||[Fragment: 
1]||cardinality=1||                                                             
                                                                   |
   | ----------[402]:[402: VHASH JOIN]||[Fragment: 1]||join op: INNER 
JOIN(PARTITIONED)[]||cardinality=593,132,346||                                  
                                                                 |
   | ------------[392]:[392: VEXCHANGE]||[Fragment: 1]||offset: 0||             
                                                                                
                                                       |
   | --------------[392]:[392: DataStreamSink]||[Fragment: 2]||STREAM DATA 
SINK||  EXCHANGE ID: 392||  HASH_PARTITIONED                                    
                                                            |
   | ----------------[386]:[386: VHIVE_SCAN_NODE]||[Fragment: 2]||table: 
lineitem||inputSplitNum=144, totalFileSize=16632158739, 
scanRanges=144||partition=1/1||cardinality=600037902, numNodes=1||pushdown 
agg=NONE|| |
   | ------------[399]:[399: VEXCHANGE]||[Fragment: 1]||offset: 0||             
                                                                                
                                                       |
   | --------------[399]:[399: DataStreamSink]||[Fragment: 3]||STREAM DATA 
SINK||  EXCHANGE ID: 399||  HASH_PARTITIONED                                    
                                                            |
   | ----------------[393]:[393: VHIVE_SCAN_NODE]||[Fragment: 3]||table: 
orders||inputSplitNum=48, totalFileSize=3984213353, 
scanRanges=48||partition=1/1||cardinality=150000000, numNodes=1||pushdown 
agg=NONE||      |
   
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   12 rows in set (0.04 sec)
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to