toby-bridges opened a new pull request, #22288:
URL: https://github.com/apache/datafusion/pull/22288

   ## Summary
   - remove the `regexp_instr` empty-pattern special case that forced `0`
   - rely on the existing regex search path so non-empty strings return 
PostgreSQL-compatible 1-based positions for empty patterns
   - add scalar regression coverage and a sqllogictest case for `SELECT 
regexp_instr('abc', '')`
   
   Fixes #22257.
   
   ## Testing
   - `cargo test -p datafusion-functions regexp_instr`
   - `cargo test -p datafusion-sqllogictest --test sqllogictests -- 
regexp_instr.slt`
   - `cargo fmt --all --check`
   - `git diff --check`


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