jackwener opened a new issue, #2169:
URL: https://github.com/apache/arrow-datafusion/issues/2169

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   ```sql
   table t1 | t2 (
   c1 float,
   c2 double,
   c3 boolean
   )
   
   ❯ explain select * from t1 left outer join t2 on t1.c1 = t2.c1 where t2.c3 = 
true;
   
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------+
   | plan_type     | plan                                                       
                                                                             |
   
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------+
   | logical_plan  | Projection: #t1.c1, #t1.c2, #t1.c3, #t2.c1, #t2.c2, #t2.c3 
                                                                             |
   |               |   Filter: #t2.c3                                           
                                                                             |
   |               |     Left Join: #t1.c1 = #t2.c1                             
                                                                             |
   |               |       TableScan: t1 projection=Some([0, 1, 2])             
                                                                             |
   |               |       TableScan: t2 projection=Some([0, 1, 2])             
                                                                             |
   | physical_plan | ProjectionExec: expr=[c1@0 as c1, c2@1 as c2, c3@2 as c3, 
c1@3 as c1, c2@4 as c2, c3@5 as c3]                                           |
   |               |   CoalesceBatchesExec: target_batch_size=4096              
                                                                             |
   |               |     FilterExec: c3@5                                       
                                                                             |
   |               |       CoalesceBatchesExec: target_batch_size=4096          
                                                                             |
   |               |         HashJoinExec: mode=Partitioned, join_type=Left, 
on=[(Column { name: "c1", index: 0 }, Column { name: "c1", index: 0 })]         
|
   |               |           CoalesceBatchesExec: target_batch_size=4096      
                                                                             |
   |               |             RepartitionExec: partitioning=Hash([Column { 
name: "c1", index: 0 }], 8)                                                    |
   |               |               RepartitionExec: 
partitioning=RoundRobinBatch(8)                                                 
                         |
   |               |                 CsvExec: 
files=[/home/jakevin/code/arrow-datafusion/datafusion/tests/aggregate_simple.csv],
 has_header=true, limit=None |
   |               |           CoalesceBatchesExec: target_batch_size=4096      
                                                                             |
   |               |             RepartitionExec: partitioning=Hash([Column { 
name: "c1", index: 0 }], 8)                                                    |
   |               |               RepartitionExec: 
partitioning=RoundRobinBatch(8)                                                 
                         |
   |               |                 CsvExec: 
files=[/home/jakevin/code/arrow-datafusion/datafusion/tests/aggregate_simple.csv],
 has_header=true, limit=None |
   |               |                                                            
                                                                             |
   
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------+
   ```
   
   **Describe the solution you'd like**
   Convert the outer join to inner join if we can. 
   
   **Describe alternatives you've considered**
   
   **Additional context**
   


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