XBaith commented on issue #2869:
URL: https://github.com/apache/amoro/issues/2869#issuecomment-2362605012

   Before adding index:
   ```
   id                       |estRows  |task     |access object                  
                                                  |operator info                
                                                                                
                                                                                
                      |
   
-------------------------+---------+---------+---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   Sort_8                   |471.80   |root     |                               
                                                  
|arctic.table_optimizing_process.process_id:desc                                
                                                                                
                                                    |
   └─HashJoin_19            |471.80   |root     |                               
                                                  |inner join, 
equal:[eq(arctic.table_identifier.table_id, 
arctic.table_optimizing_process.table_id)]                                      
                                                                           |
     ├─Point_Get_20(Build)  |1.00     |root     |table:table_identifier, 
index:table_name_index(catalog_name, db_name, table_name)|                      
                                                                                
                                                                                
                             |
     └─TableReader_23(Probe)|471.80   |root     |                               
                                                  |data:Selection_22            
                                                                                
                                                                                
                      |
       └─Selection_22       |471.80   |cop[tikv]|                               
                                                  
|eq(arctic.table_optimizing_process.catalog_name, "dls_dfw_iceberg"), 
eq(arctic.table_optimizing_process.db_name, "pda_sparkdata"), 
eq(arctic.table_optimizing_process.table_name, 
"bc_usprod_kafka_sa_uctg_v1_raw")|
         └─TableFullScan_21 |248991.00|cop[tikv]|table:a                        
                                                  |keep order:false             
                                                                                
                                                                                
                      |
   ```
   
   After Adding index
   ```
   id                            |estRows|task     |access object               
                                                     |operator info             
                                                                                
                                                     |
   
------------------------------+-------+---------+---------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
   Sort_8                        |735.95 |root     |                            
                                                     
|arctic.table_optimizing_process.process_id:desc                                
                                                                                
|
   └─HashJoin_19                 |735.95 |root     |                            
                                                     |inner join, 
equal:[eq(arctic.table_identifier.table_id, 
arctic.table_optimizing_process.table_id)]                                      
                       |
     ├─Point_Get_20(Build)       |1.00   |root     |table:table_identifier, 
index:table_name_index(catalog_name, db_name, table_name)|                      
                                                                                
                                                         |
     └─IndexLookUp_26(Probe)     |3131.00|root     |                            
                                                     |                          
                                                                                
                                                     |
       ├─IndexRangeScan_24(Build)|3131.00|cop[tikv]|table:a, 
index:idx_catalog_db_table(catalog_name, db_name, table_name)           
|range:["dls_dfw_iceberg" "pda_sparkdata" 
"bc_usprod_kafka_sa_uctg_v1_raw","dls_dfw_iceberg" "pda_sparkdata" 
"bc_usprod_kafka_sa_uctg_v1_raw"], keep order:false|
       └─TableRowIDScan_25(Probe)|3131.00|cop[tikv]|table:a                     
                                                     |keep order:false          
                                                                                
                                                     |
   ```


-- 
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