apucher commented on a change in pull request #8314: URL: https://github.com/apache/pinot/pull/8314#discussion_r822179052
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/Constants.java ########## @@ -59,6 +61,18 @@ public static TableType validateTableType(String tableTypeStr) { } } + public static ComponentType validateComponentType(String componentTypeStr) { + if (componentTypeStr == null || componentTypeStr.isEmpty()) { + return null; + } Review comment: you could use `StringUtils.isBlank` here -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org