alamb commented on issue #799:
URL: https://github.com/apache/datafusion/issues/799#issuecomment-2582597548

   This is done now from what I can tell: 
   
   
   ```sql
   > create table foo(x int, a int, b int) as values (1,2,3);
   0 row(s) fetched.
   Elapsed 0.006 seconds.
   
   > explain select * from foo where x in (a, b);
   +---------------+---------------------------------------------------+
   | plan_type     | plan                                              |
   +---------------+---------------------------------------------------+
   | logical_plan  | Filter: foo.x = foo.a OR foo.x = foo.b            |
   |               |   TableScan: foo projection=[x, a, b]             |
   | physical_plan | CoalesceBatchesExec: target_batch_size=8192       |
   |               |   FilterExec: x@0 = a@1 OR x@0 = b@2              |
   |               |     MemoryExec: partitions=1, partition_sizes=[1] |
   |               |                                                   |
   +---------------+---------------------------------------------------+
   2 row(s) fetched.
   Elapsed 0.018 seconds.
   
   >
   ```
   
   Note the 
   ```
   FilterExec: x@0 = a@1 OR x@0 = b@2   
   ```


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