uros-db commented on code in PR #46511: URL: https://github.com/apache/spark/pull/46511#discussion_r1596735843
########## common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationAwareUTF8String.java: ########## @@ -34,6 +34,15 @@ * Utility class for collation-aware UTF8String operations. */ public class CollationAwareUTF8String { + + public static boolean lowercaseMatchAt(final UTF8String l, final UTF8String r, + int pos, int len) { + if (len + pos > l.numChars() || pos < 0) { + return false; + } + return l.substring(pos, pos + len).toLowerCase().equals(r); Review Comment: update: resolved in latest commit (we're no longer trying to match a known number of characters) -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org