alamb opened a new issue, #14947:
URL: https://github.com/apache/datafusion/issues/14947

   ### Describe the bug
   
   Explain plans look good in DataFusion 45:
   ```sql
   DataFusion CLI v45.0.0
   > create table foo(x int, y int) as values (1,2), (3,4);
   0 row(s) fetched.
   Elapsed 0.007 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                             |
   |               |     MemoryExec: partitions=1, partition_sizes=[1] |
   |               |                                                   |
   +---------------+---------------------------------------------------+
   2 row(s) fetched.
   Elapsed 0.005 seconds.
   
   ```
   
   However, they look really bad on main (aka pre-release DataFusion 46):
   
   ```
   > create table foo(x int, y int) as values (1,2), (3,4);
   0 row(s) fetched.
   Elapsed 0.018 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.013 seconds.
   ```
   
   ### To Reproduce
   
   ```sql
   create table foo(x int, y int) as values (1,2), (3,4);
   explain select * from foo where x = 4;
   ```
   
   ### Expected behavior
   
   I expect the cells to be correctly rendered like in DataFUsion 45
   
   ### Additional context
   
   This appears to be another issue introduced by 
   - https://github.com/apache/datafusion/pull/14877


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