Rachelint opened a new issue, #12597: URL: https://github.com/apache/datafusion/issues/12597
### Is your feature request related to a problem or challenge? Because `Pattern` is still the unstable feature in rust, we introdce unsafe codes to get offset of the trimmed str(related disscussion https://github.com/apache/datafusion/issues/12387). We can remove such codes once `Pattern` become stable, so that we can get such offset through safe way. ### Describe the solution you'd like Use `Pattern` to get the offset of trimmed str rather unsafe codes. ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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.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