cstavr commented on code in PR #46280:
URL: https://github.com/apache/spark/pull/46280#discussion_r1598916467
##########
common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationFactory.java:
##########
@@ -36,11 +36,42 @@
* Provides functionality to the UTF8String object which respects defined
collation settings.
*/
public final class CollationFactory {
+
+ public static class CollationIdentifier {
+ public final String provider;
+ public final String name;
+ public final String version;
+
+ public CollationIdentifier(String provider, String collationName, String
version) {
+ this.provider = provider;
+ this.name = collationName;
+ this.version = version;
+ }
+
+ public static CollationIdentifier fromString(String identifier) {
+ String[] parts = identifier.split("\\.", 3);
+ return new CollationIdentifier(parts[0], parts[1], parts[2]);
+ }
+
+ @Override
+ public String toString() {
+ return String.format("%s.%s.%s", provider, name, version);
+ }
+
+ /**
+ * Returns
Review Comment:
?
--
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]