gferrate opened a new pull request, #20542:
URL: https://github.com/apache/datafusion/pull/20542

   ## Which issue does this PR close?
   
   - Closes #20503 
   
   ## Rationale for this change
   
   `split_part` did not handle empty delimiters in a PostgreSQL-compatible way 
(`split("")` in Rust creates leading/trailing empty fields).
   This could return unexpected results for positions like `1` / `-1` and 
out-of-range values.
   This PR aligns behavior with Postgres semantics for empty delimiters.
   
   ## What changes are included in this PR?
   
   Small change in how we treat the 1, -1
   
   ## Are these changes tested?
   
   Indeed!
   
   ## Are there any user-facing changes?
   
   Yes, behavior is now more consistent with PostgreSQL for `split_part(str, 
'', n)`.
   No API changes.
   
   


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