dbatomic commented on code in PR #45216: URL: https://github.com/apache/spark/pull/45216#discussion_r1502762736
########## common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationFactory.java: ########## @@ -105,6 +105,9 @@ public Collation( private static final Collation[] collationTable = new Collation[4]; private static final HashMap<String, Integer> collationNameToIdMap = new HashMap<>(); + public static final int DEFAULT_COLLATION_ID = 0; Review Comment: Let's avoid keeping COLLATION_IDs in both StringType and here. Maybe having an enum in CollationFactory is a good option? -- 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]
