willemv opened a new pull request, #19077: URL: https://github.com/apache/datafusion/pull/19077
## Which issue does this PR close? - Closes #19076. ## What changes are included in this PR? The `simplify` implementation for `StartsWithFunc` is adjusted to also escape underscores instead of only percent signs. ## Are these changes tested? Yes, new sql logic tests were added testing `starts_with` functions with string literals and patterns that contain an underscore. Similar tests were added for `ends_with`, even though that function has no simplification and is not affected by this bug. If simplification is ever introduced there, escaping the underscore cannot be overlooked then. ## Are there any user-facing changes? No -- 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]
