snmvaughan opened a new issue, #3442:
URL: https://github.com/apache/arrow-rs/issues/3442

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   The implementation for `like` checks for specific fast paths in order to 
avoid using a regex, but direct usage of those string comparisons aren't 
directly available.
   
   **Describe the solution you'd like**
   Implement `starts_with`, `ends_with`, and `contains` so that they can be 
accessed directly.  As an example, there would be an equivalent to `like_dyn` 
called `starts_with_dyn`, an equivalent to `like_utf8` called 
`starts_with_utf8`, etc.
   
   **Describe alternatives you've considered**
   Clients could use the existing `like` kernel, but this would introduce 
unnecessary fast path checks.
   
   **Additional context**
   Expression optimizers can automatically determine the fast path optimization 
and avoid using `like`.  As an example a sql statement that references `where 
name like 'Arro%'` could optimize the filter to `where StartsWith(name, 
'Arro')` 


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