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: [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]