UBarney commented on PR #14567:
URL: https://github.com/apache/datafusion/pull/14567#issuecomment-2649842916

   > I assume this should also work with no wildcards `col not like 'foo'`? 
   
   Yes. add some test to demonstrate it
   There's also an optimization to rewrite `col not like 'foo'` as `col != 
'foo'`
   ```
   > explain select * from values ('foo'), ('bar') where column1 not like 'foo';
   +---------------+-------------------------------------------------------+
   | plan_type     | plan                                                  |
   +---------------+-------------------------------------------------------+
   | logical_plan  | Filter: column1 != Utf8("foo")                        |
   |               |   Values: (Utf8("foo")), (Utf8("bar"))                |
   | physical_plan | CoalesceBatchesExec: target_batch_size=8192           |
   |               |   FilterExec: column1@0 != foo                        |
   |               |     DataSourceExec: partitions=1, partition_sizes=[1] |
   |               |                                                       |
   +---------------+-------------------------------------------------------+
   2 row(s) fetched. 
   Elapsed 0.006 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: 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