jerryshao commented on code in PR #4261:
URL: https://github.com/apache/gravitino/pull/4261#discussion_r1696697006
##########
api/src/main/java/org/apache/gravitino/Catalog.java:
##########
@@ -45,7 +45,26 @@ enum Type {
MESSAGING,
/** Catalog Type for test only. */
- UNSUPPORTED
+ UNSUPPORTED;
+
+ /**
+ * Convert the string (case-insensitive) to the catalog type.
+ *
+ * @param type The string to convert
+ * @return The catalog type
+ */
+ public static Type fromString(String type) {
+ switch (type.toLowerCase()) {
Review Comment:
Please specify the Locale for `toLowerCase()`
--
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]