ryukobayashi commented on code in PR #5487:
URL: https://github.com/apache/hive/pull/5487#discussion_r1792752278


##########
ql/src/java/org/apache/hadoop/hive/ql/DriverFactory.java:
##########
@@ -49,20 +47,29 @@ public static IDriver newDriver(QueryState queryState, 
QueryInfo queryInfo) {
     }
 
     String strategies = 
queryState.getConf().getVar(ConfVars.HIVE_QUERY_REEXECUTION_STRATEGIES);
-    strategies = Strings.nullToEmpty(strategies).trim().toLowerCase();
     List<IReExecutionPlugin> plugins = new ArrayList<>();
     for (String string : strategies.split(",")) {
       if (string.trim().isEmpty()) {
         continue;
       }
-      plugins.add(buildReExecPlugin(string));
+
+      IReExecutionPlugin plugin = buildReExecPlugin(string);
+      if (plugin != null) {
+        plugins.add(buildReExecPlugin(string));
+      } else {
+        plugins.add(buildCustomReExecPlugin(string));
+      }
     }
 
     return new ReExecDriver(queryState, queryInfo, plugins);
   }
 
   private static IReExecutionPlugin buildReExecPlugin(String name) throws 
RuntimeException {
     Class<? extends IReExecutionPlugin> pluginType = 
ReExecutionStrategyType.getPluginClassByName(name);
+    if (pluginType == null) {

Review Comment:
   OK, move the process.



-- 
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

Reply via email to