uros-db commented on code in PR #48521:
URL: https://github.com/apache/spark/pull/48521#discussion_r1812941671
##########
common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationFactory.java:
##########
@@ -1191,6 +1204,24 @@ public static String[] getICULocaleNames() {
return Collation.CollationSpecICU.ICULocaleNames;
}
+ /**
+ * Applies trimming policy depending up on trim collation type.
+ */
+ public static UTF8String applyTrimmingPolicy(UTF8String input, int
collationId) {
+ return Collation.CollationSpec.applyTrimmingPolicy(input, collationId);
+ }
+
+ /**
+ * Returns if leading/trailing spaces should be ignored in trim string
expressions. This is needed
+ * because space trimming collation directly changes behaviour of trim
functions.
+ */
+ public static boolean ignoresSpacesInTrimFunctions(
+ int collationId,
+ boolean isLTrim,
+ boolean isRTrim) {
Review Comment:
fix scalastyle
--
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]