helgikrs commented on issue #8190:
URL: https://github.com/apache/datafusion/issues/8190#issuecomment-2275493853

   Closing this issue since it seems to be resolved. Running the repro (on v40) 
I get the following (correct) result.
   
   ```sql
   > explain select * from a where a in (select b from b) AND a > 0 OR a in 
(select c from c);
   
+--------------+-----------------------------------------------------------------------+
   | plan_type    | plan                                                        
          |
   
+--------------+-----------------------------------------------------------------------+
   | logical_plan | Filter: a.a IN (<subquery>) AND a.a > Int64(0) OR a.a IN 
(<subquery>) |
   |              |   Subquery:                                                 
          |
   |              |     Projection: b.b                                         
          |
   |              |       TableScan: b                                          
          |
   |              |   Subquery:                                                 
          |
   |              |     Projection: c.c                                         
          |
   |              |       TableScan: c                                          
          |
   |              |   TableScan: a projection=[a]                               
          |
   
+--------------+-----------------------------------------------------------------------+
   1 row(s) fetched. 
   Elapsed 0.002 seconds.
   ```
   
   and
   
   ```sql
   > explain select * from a where a in (select b from b) OR a in (select c 
from c);
   +--------------+----------------------------------------------------+
   | plan_type    | plan                                               |
   +--------------+----------------------------------------------------+
   | logical_plan | Filter: a.a IN (<subquery>) OR a.a IN (<subquery>) |
   |              |   Subquery:                                        |
   |              |     Projection: b.b                                |
   |              |       TableScan: b                                 |
   |              |   Subquery:                                        |
   |              |     Projection: c.c                                |
   |              |       TableScan: c                                 |
   |              |   TableScan: a projection=[a]                      |
   +--------------+----------------------------------------------------+
   1 row(s) fetched. 
   Elapsed 0.001 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: [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