zhuqi-lucas commented on PR #14954:
URL: https://github.com/apache/datafusion/pull/14954#issuecomment-2692165153

   Updated testing result:
   ```rust
   DataFusion CLI v45.0.0
   > create table foo(x int, y int) as values (1,2), (3,4);
   0 row(s) fetched.
   Elapsed 0.026 seconds.
   
   > explain select * from foo where x = 4;
   +---------------+-------------------------------------------------------+
   | plan_type     | plan                                                  |
   +---------------+-------------------------------------------------------+
   | logical_plan  | Filter: foo.x = Int32(4)                              |
   |               |   TableScan: foo projection=[x, y]                    |
   | physical_plan | CoalesceBatchesExec: target_batch_size=8192           |
   |               |   FilterExec: x@0 = 4                                 |
   |               |     DataSourceExec: partitions=1, partition_sizes=[1] |
   +---------------+-------------------------------------------------------+
   2 row(s) fetched.
   Elapsed 0.022 seconds.
   
   > explain verbose select * from foo where x = 4;
   
+------------------------------------------------------------+-------------------------------------------+
   | plan_type                                                  | plan          
                            |
   
+------------------------------------------------------------+-------------------------------------------+
   | initial_logical_plan                                       | Projection: * 
                            |
   |                                                            |   Filter: 
foo.x = Int64(4)                |
   |                                                            |     
TableScan: foo                        |
   | logical_plan after inline_table_scan                       | SAME TEXT AS 
ABOVE                        |
   | logical_plan after expand_wildcard_rule                    | Projection: 
foo.x, foo.y                  |
   |                                                            |   Filter: 
foo.x = Int64(4)                |
   |                                                            |     
TableScan: foo                        |
   | logical_plan after resolve_grouping_function               | SAME TEXT AS 
ABOVE                        |
   | logical_plan after type_coercion                           | Projection: 
foo.x, foo.y                  |
   |                                                            |   Filter: 
CAST(foo.x AS Int64) = Int64(4) |
   |                                                            |     
TableScan: foo                        |
   | analyzed_logical_plan                                      | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_nested_union                  | SAME TEXT AS 
ABOVE                        |
   | logical_plan after simplify_expressions                    | SAME TEXT AS 
ABOVE                        |
   | logical_plan after unwrap_cast_in_comparison               | Projection: 
foo.x, foo.y                  |
   |                                                            |   Filter: 
foo.x = Int32(4)                |
   |                                                            |     
TableScan: foo                        |
   | logical_plan after replace_distinct_aggregate              | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_join                          | SAME TEXT AS 
ABOVE                        |
   | logical_plan after decorrelate_predicate_subquery          | SAME TEXT AS 
ABOVE                        |
   | logical_plan after scalar_subquery_to_join                 | SAME TEXT AS 
ABOVE                        |
   | logical_plan after extract_equijoin_predicate              | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_duplicated_expr               | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_filter                        | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_cross_join                    | SAME TEXT AS 
ABOVE                        |
   | logical_plan after common_sub_expression_eliminate         | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_limit                         | SAME TEXT AS 
ABOVE                        |
   | logical_plan after propagate_empty_relation                | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_one_union                     | SAME TEXT AS 
ABOVE                        |
   | logical_plan after filter_null_join_keys                   | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_outer_join                    | SAME TEXT AS 
ABOVE                        |
   | logical_plan after push_down_limit                         | SAME TEXT AS 
ABOVE                        |
   | logical_plan after push_down_filter                        | SAME TEXT AS 
ABOVE                        |
   | logical_plan after single_distinct_aggregation_to_group_by | SAME TEXT AS 
ABOVE                        |
   | logical_plan after simplify_expressions                    | SAME TEXT AS 
ABOVE                        |
   | logical_plan after unwrap_cast_in_comparison               | SAME TEXT AS 
ABOVE                        |
   | logical_plan after common_sub_expression_eliminate         | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_group_by_constant             | SAME TEXT AS 
ABOVE                        |
   | logical_plan after optimize_projections                    | Filter: foo.x 
= Int32(4)                  |
   |                                                            |   TableScan: 
foo projection=[x, y]        |
   | logical_plan after eliminate_nested_union                  | SAME TEXT AS 
ABOVE                        |
   | logical_plan after simplify_expressions                    | SAME TEXT AS 
ABOVE                        |
   | logical_plan after unwrap_cast_in_comparison               | SAME TEXT AS 
ABOVE                        |
   | logical_plan after replace_distinct_aggregate              | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_join                          | SAME TEXT AS 
ABOVE                        |
   | logical_plan after decorrelate_predicate_subquery          | SAME TEXT AS 
ABOVE                        |
   | logical_plan after scalar_subquery_to_join                 | SAME TEXT AS 
ABOVE                        |
   | logical_plan after extract_equijoin_predicate              | SAME TEXT AS 
ABOVE                        |
   | logical_plan after eliminate_duplicated_expr               | SAME TEXT AS 
ABOVE                        |
   | .                                                          | .             
                            |
   | .                                                          | .             
                            |
   | .                                                          | .             
                            |
   
+------------------------------------------------------------+-------------------------------------------+
   78 row(s) fetched. (First 40 displayed. Use --maxrows to adjust)
   Elapsed 0.005 seconds.
   ```


-- 
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: github-unsubscr...@datafusion.apache.org

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


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

Reply via email to