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

   ### Describe the bug
   
   This bug is discovered when I trying to test the behaviour of 
`InterleaveExec`.
   
   ### To Reproduce
   
   ```sql
   > explain select count(*) from ((select distinct c1, c2 from t3 order by c1 
) union all (select distinct c2, c1 from t4 order by c1));
   
+---------------+---------------------------------------------------------------+
   | plan_type     | plan                                                       
   |
   
+---------------+---------------------------------------------------------------+
   | logical_plan  | Aggregate: groupBy=[[]], aggr=[[COUNT(Int64(1)) AS 
COUNT(*)]] |
   |               |   Union                                                    
   |
   |               |     Projection:                                            
   |
   |               |       Sort: t3.c1 ASC NULLS LAST                           
   |
   |               |         Projection: t3.c1                                  
   |
   |               |           Aggregate: groupBy=[[t3.c1, t3.c2]], aggr=[[]]   
   |
   |               |             TableScan: t3 projection=[c1, c2]              
   |
   |               |     Projection:                                            
   |
   |               |       Sort: t4.c1 ASC NULLS LAST                           
   |
   |               |         Projection: t4.c1                                  
   |
   |               |           Aggregate: groupBy=[[t4.c2, t4.c1]], aggr=[[]]   
   |
   |               |             Projection: t4.c2, t4.c1                       
   |
   |               |               TableScan: t4 projection=[c1, c2]            
   |
   | physical_plan | ProjectionExec: expr=[2 as COUNT(*)]                       
   |
   |               |   PlaceholderRowExec                                       
   |
   |               |                                                            
   |
   
+---------------+---------------------------------------------------------------+
   2 row(s) fetched. 
   Elapsed 0.014 seconds.
   ```
   
   ### Expected behavior
   
   The actual physical plan.
   
   ### Additional context
   
   _No response_


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to