uros-db commented on code in PR #46762:
URL: https://github.com/apache/spark/pull/46762#discussion_r1667889474
##########
common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationAwareUTF8String.java:
##########
@@ -657,57 +659,64 @@ public static Map<String, String>
getCollationAwareDict(UTF8String string,
public static UTF8String lowercaseTrim(
final UTF8String srcString,
final UTF8String trimString) {
+ return lowercaseTrimRight(lowercaseTrimLeft(srcString, trimString),
trimString);
+ }
+
+ public static UTF8String trim(
+ final UTF8String srcString,
+ final UTF8String trimString,
+ final int collationId) {
+ return trimRight(trimLeft(srcString, trimString, collationId), trimString,
collationId);
+ }
+
+ public static UTF8String lowercaseTrimLeft(
Review Comment:
added doc comments
--
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]