ryukobayashi commented on code in PR #5487: URL: https://github.com/apache/hive/pull/5487#discussion_r1792753397
########## ql/src/java/org/apache/hadoop/hive/ql/reexec/ReExecutionStrategyType.java: ########## @@ -39,6 +37,10 @@ public Class<? extends IReExecutionPlugin> getPluginClass() { } public static Class<? extends IReExecutionPlugin> getPluginClassByName(String strategy) { - return ReExecutionStrategyType.valueOf(strategy.toUpperCase()).getPluginClass(); + try { + return ReExecutionStrategyType.valueOf(strategy.toUpperCase()).getPluginClass(); + } catch (IllegalArgumentException e) { + return null; Review Comment: Yes, with the above changes it is no longer necessary. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org