pitrou commented on PR #39264:
URL: https://github.com/apache/arrow/pull/39264#issuecomment-1881379139

   Sorry for the delay here.
   
   If we want these semantics, we should make sure that non-ASCII data works as 
expected for utf8 strings:
   ```python
   >>> "àà".replace("", "z")
   'zàzàz'
   ```
   I'm not sure the current code ensures this...
   
   An alternative would be to simply return an error if the pattern is empty.
   
   What do you think @wjones127 @jorisvandenbossche ?


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