You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by mg...@apache.org on 2020/07/15 12:46:25 UTC

[hive] branch master updated: Clean up Driver (Miklos Gergely, reviewed by Peter Vary) (#1222)

This is an automated email from the ASF dual-hosted git repository.

mgergely pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 9418c08  Clean up Driver (Miklos Gergely, reviewed by Peter Vary) (#1222)
9418c08 is described below

commit 9418c08225dcdfe9fdb360ab6037caeaa1847863
Author: Miklos Gergely <mg...@cloudera.com>
AuthorDate: Wed Jul 15 14:46:13 2020 +0200

    Clean up Driver (Miklos Gergely, reviewed by Peter Vary) (#1222)
---
 .../plugin/TestHiveAuthorizerCheckInvocation.java  |   2 +-
 ql/src/java/org/apache/hadoop/hive/ql/Driver.java  | 113 ++++++---------------
 .../org/apache/hadoop/hive/ql/DriverFactory.java   |  12 ++-
 .../org/apache/hadoop/hive/ql/DriverState.java     |   9 +-
 .../apache/hadoop/hive/ql/DriverTxnHandler.java    |  52 +++++++++-
 .../org/apache/hadoop/hive/ql/DriverUtils.java     |  13 +++
 .../java/org/apache/hadoop/hive/ql/Executor.java   |   7 +-
 .../apache/hadoop/hive/ql/HiveDriverRunHook.java   |   6 +-
 .../hadoop/hive/ql/HiveDriverRunHookContext.java   |   4 +-
 ql/src/java/org/apache/hadoop/hive/ql/IDriver.java |   6 +-
 .../hive/ql/udf/generic/GenericUDTFGetSplits.java  |   2 +-
 11 files changed, 120 insertions(+), 106 deletions(-)

diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHiveAuthorizerCheckInvocation.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHiveAuthorizerCheckInvocation.java
index 2c2d96c..79d494f 100644
--- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHiveAuthorizerCheckInvocation.java
+++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHiveAuthorizerCheckInvocation.java
@@ -302,7 +302,7 @@ public class TestHiveAuthorizerCheckInvocation {
     assertTrue("db name", dbName.equalsIgnoreCase(dbObj.getDbname()));
 
     // actually create the permanent function
-    driver.run(null, true);
+    driver.run();
 
     // Verify privilege objects
     reset(mockedAuthorizer);
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
index 523b25f..5590cf3 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
@@ -47,7 +47,6 @@ import org.apache.hadoop.hive.ql.metadata.formatting.JsonMetaDataFormatter;
 import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatUtils;
 import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter;
 import org.apache.hadoop.hive.ql.parse.ExplainConfiguration.AnalyzeState;
-import org.apache.hadoop.hive.ql.plan.HiveOperation;
 import org.apache.hadoop.hive.ql.plan.mapper.PlanMapper;
 import org.apache.hadoop.hive.ql.plan.mapper.StatsSource;
 import org.apache.hadoop.hive.ql.processors.CommandProcessorException;
@@ -64,6 +63,9 @@ import org.slf4j.LoggerFactory;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Strings;
 
+/**
+ * Compiles and executes HQL commands.
+ */
 public class Driver implements IDriver {
 
   private static final String CLASS_NAME = Driver.class.getName();
@@ -99,7 +101,7 @@ public class Driver implements IDriver {
   }
 
   /**
-   * Set the maximum number of rows returned by getResults
+   * Set the maximum number of rows returned by getResults.
    */
   @Override
   public void setMaxRows(int maxRows) {
@@ -111,8 +113,7 @@ public class Driver implements IDriver {
     this(new QueryState.Builder().withGenerateNewQueryId(true).withHiveConf(conf).build());
   }
 
-  // Pass lineageState when a driver instantiates another Driver to run
-  // or compile another query
+  // Pass lineageState when a driver instantiates another Driver to run or compile another query
   public Driver(HiveConf conf, Context ctx, LineageState lineageState) {
     this(QueryState.getNewQueryState(conf, lineageState), null);
     context = ctx;
@@ -140,8 +141,9 @@ public class Driver implements IDriver {
   }
 
   /**
-   * Compile a new query, but potentially reset taskID counter.  Not resetting task counter
-   * is useful for generating re-entrant QL queries.
+   * Compiles a new HQL command, but potentially resets taskID counter. Not resetting task counter is useful for
+   * generating re-entrant QL queries.
+   * 
    * @param command  The HiveQL query to compile
    * @param resetTaskIds Resets taskID counter if true.
    * @return 0 for ok
@@ -155,9 +157,14 @@ public class Driver implements IDriver {
     }
   }
 
-  // deferClose indicates if the close/destroy should be deferred when the process has been
-  // interrupted, it should be set to true if the compile is called within another method like
-  // runInternal, which defers the close to the called in that method.
+  /**
+   * Compiles an HQL command, creates an execution plan for it.
+   * 
+   * @param deferClose indicates if the close/destroy should be deferred when the process has been interrupted, it
+   *        should be set to true if the compile is called within another method like runInternal, which defers the
+   *        close to the called in that method.
+   * @param resetTaskIds Resets taskID counter if true.
+   */
   @VisibleForTesting
   public void compile(String command, boolean resetTaskIds, boolean deferClose) throws CommandProcessorException {
     preparForCompile(resetTaskIds);
@@ -279,18 +286,23 @@ public class Driver implements IDriver {
     releaseTaskQueue();
   }
 
+  /**
+   * Compiles and executes an HQL command.
+   */
   @Override
   public CommandProcessorResponse run(String command) throws CommandProcessorException {
     return run(command, false);
   }
 
+  /**
+   * Executes a previously compiled HQL command.
+   */
   @Override
   public CommandProcessorResponse run() throws CommandProcessorException {
     return run(null, true);
   }
 
-  public CommandProcessorResponse run(String command, boolean alreadyCompiled) throws CommandProcessorException {
-
+  private CommandProcessorResponse run(String command, boolean alreadyCompiled) throws CommandProcessorException {
     try {
       runInternal(command, alreadyCompiled);
       return new CommandProcessorResponse(getSchema(), null);
@@ -370,7 +382,7 @@ public class Driver implements IDriver {
     try {
       driverTxnHandler.acquireLocksIfNeeded();
     } catch (CommandProcessorException cpe) {
-      rollback(cpe);
+      driverTxnHandler.rollback(cpe);
       throw cpe;
     }
   }
@@ -472,54 +484,19 @@ public class Driver implements IDriver {
       DriverUtils.checkInterrupted(driverState, driverContext, "at acquiring the lock.", null, null);
 
       lockAndRespond();
-
-      try {
-        if (!driverTxnHandler.isValidTxnListState()) {
-          LOG.warn("Reexecuting after acquiring locks, since snapshot was outdated.");
-          // Snapshot was outdated when locks were acquired, hence regenerate context,
-          // txn list and retry (see ReExecutionRetryLockPlugin)
-          try {
-            driverTxnHandler.endTransactionAndCleanup(false);
-          } catch (LockException e) {
-            handleHiveException(e, 12);
-          }
-          HiveException e = new HiveException(
-              "Operation could not be executed, " + SNAPSHOT_WAS_OUTDATED_WHEN_LOCKS_WERE_ACQUIRED + ".");
-          handleHiveException(e, 14);
-        }
-      } catch (LockException e) {
-        handleHiveException(e, 13);
-      }
+      driverTxnHandler.validateTxnListState();
 
       try {
         taskQueue = new TaskQueue(context); // for canceling the query (should be bound to session?)
         Executor executor = new Executor(context, driverContext, driverState, taskQueue);
         executor.execute();
       } catch (CommandProcessorException cpe) {
-        rollback(cpe);
+        driverTxnHandler.rollback(cpe);
         throw cpe;
       }
 
       //if needRequireLock is false, the release here will do nothing because there is no lock
-      try {
-        //since set autocommit starts an implicit txn, close it
-        if (driverContext.getTxnManager().isImplicitTransactionOpen() ||
-            driverContext.getPlan().getOperation() == HiveOperation.COMMIT) {
-          driverTxnHandler.endTransactionAndCleanup(true);
-        }
-        else if(driverContext.getPlan().getOperation() == HiveOperation.ROLLBACK) {
-          driverTxnHandler.endTransactionAndCleanup(false);
-        } else if (!driverContext.getTxnManager().isTxnOpen() &&
-            driverContext.getQueryState().getHiveOperation() == HiveOperation.REPLLOAD) {
-          // repl load during migration, commits the explicit txn and start some internal txns. Call
-          // releaseLocksAndCommitOrRollback to do the clean up.
-          driverTxnHandler.endTransactionAndCleanup(false);
-        } else {
-          //txn (if there is one started) is not finished
-        }
-      } catch (LockException e) {
-        handleHiveException(e, 12);
-      }
+      driverTxnHandler.handleTransactionAfterExecution();
 
       driverContext.getQueryDisplay().setPerfLogStarts(QueryDisplay.Phase.EXECUTION, perfLogger.getStartTimes());
       driverContext.getQueryDisplay().setPerfLogEnds(QueryDisplay.Phase.EXECUTION, perfLogger.getEndTimes());
@@ -542,48 +519,18 @@ public class Driver implements IDriver {
         releaseResources();
       }
 
-      driverState.lock();
-      try {
-        driverState.executionFinished(isFinishedWithError);
-      } finally {
-        driverState.unlock();
-      }
+      driverState.executionFinishedWithLocking(isFinishedWithError);
     }
 
     SessionState.getPerfLogger().cleanupPerfLogMetrics();
   }
 
-  private void rollback(CommandProcessorException cpe) throws CommandProcessorException {
-    try {
-      driverTxnHandler.endTransactionAndCleanup(false);
-    } catch (LockException e) {
-      LOG.error("rollback() FAILED: " + cpe); //make sure not to loose
-      handleHiveException(e, 12, "Additional info in hive.log at \"rollback() FAILED\"");
-    }
-  }
-
-  private void handleHiveException(HiveException e, int ret) throws CommandProcessorException {
-    handleHiveException(e, ret, null);
-  }
-
-  private void handleHiveException(HiveException e, int ret, String rootMsg)
-      throws CommandProcessorException {
-    String errorMessage = "FAILED: Hive Internal Error: " + Utilities.getNameMessage(e);
-    if (rootMsg != null) {
-      errorMessage += "\n" + rootMsg;
-    }
-    String sqlState = e.getCanonicalErrorMsg() != null ?
-        e.getCanonicalErrorMsg().getSQLState() : ErrorMsg.findSQLState(e.getMessage());
-    CONSOLE.printError(errorMessage + "\n" + StringUtils.stringifyException(e));
-    throw DriverUtils.createProcessorException(driverContext, ret, errorMessage, sqlState, e);
-  }
-
   @Override
   public boolean isFetchingTable() {
     return driverContext.getFetchTask() != null;
   }
 
-  @SuppressWarnings("unchecked")
+  @SuppressWarnings({ "unchecked", "rawtypes" })
   @Override
   public boolean getResults(List res) throws IOException {
     if (driverState.isDestroyed() || driverState.isClosed()) {
@@ -832,7 +779,7 @@ public class Driver implements IDriver {
   }
 
   /**
-   * Set the HS2 operation handle's guid string
+   * Set the HS2 operation handle's guid string.
    * @param operationId base64 encoded guid string
    */
   @Override
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/DriverFactory.java b/ql/src/java/org/apache/hadoop/hive/ql/DriverFactory.java
index 78ace0b..33275f6 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/DriverFactory.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/DriverFactory.java
@@ -34,7 +34,11 @@ import com.google.common.base.Strings;
 /**
  * Constructs a driver for ql clients.
  */
-public class DriverFactory {
+public final class DriverFactory {
+
+  private DriverFactory() {
+    throw new UnsupportedOperationException("DriverFactory should not be instantiated!");
+  }
 
   public static IDriver newDriver(HiveConf conf) {
     return newDriver(getNewQueryState(conf), null);
@@ -62,13 +66,13 @@ public class DriverFactory {
   }
 
   private static IReExecutionPlugin buildReExecPlugin(String name) throws RuntimeException {
-    if (name.equals("overlay")) {
+    if ("overlay".equals(name)) {
       return new ReExecutionOverlayPlugin();
     }
-    if (name.equals("reoptimize")) {
+    if ("reoptimize".equals(name)) {
       return new ReOptimizePlugin();
     }
-    if(name.equals("reexecute_lost_am")) {
+    if("reexecute_lost_am".equals(name)) {
       return new ReExecuteLostAMQueryPlugin();
     }
     throw new RuntimeException(
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/DriverState.java b/ql/src/java/org/apache/hadoop/hive/ql/DriverState.java
index 6ac071f..6e0355d 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/DriverState.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/DriverState.java
@@ -129,8 +129,13 @@ public class DriverState {
     return driverState == State.EXECUTING;
   }
 
-  public void executionFinished(boolean wasError) {
-    driverState = wasError ? State.ERROR : State.EXECUTED;
+  public void executionFinishedWithLocking(boolean wasError) {
+    lock();
+    try {
+      driverState = wasError ? State.ERROR : State.EXECUTED;
+    } finally {
+      unlock();
+    }
   }
 
   public boolean isExecuted() {
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java
index b8648d9..6de6fd3 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java
@@ -59,6 +59,7 @@ import org.apache.hadoop.hive.ql.lockmgr.HiveLockMode;
 import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager;
 import org.apache.hadoop.hive.ql.lockmgr.LockException;
 import org.apache.hadoop.hive.ql.log.PerfLogger;
+import org.apache.hadoop.hive.ql.metadata.HiveException;
 import org.apache.hadoop.hive.ql.metadata.Table;
 import org.apache.hadoop.hive.ql.parse.HiveTableName;
 import org.apache.hadoop.hive.ql.parse.SemanticException;
@@ -379,12 +380,32 @@ class DriverTxnHandler {
     }
   }
 
+  void validateTxnListState() throws CommandProcessorException {
+    try {
+      if (!isValidTxnListState()) {
+        LOG.warn("Reexecuting after acquiring locks, since snapshot was outdated.");
+        // Snapshot was outdated when locks were acquired, hence regenerate context,
+        // txn list and retry (see ReExecutionRetryLockPlugin)
+        try {
+          endTransactionAndCleanup(false);
+        } catch (LockException e) {
+          DriverUtils.handleHiveException(driverContext, e, 12, null);
+        }
+        HiveException e = new HiveException(
+            "Operation could not be executed, " + Driver.SNAPSHOT_WAS_OUTDATED_WHEN_LOCKS_WERE_ACQUIRED + ".");
+        DriverUtils.handleHiveException(driverContext, e, 14, null);
+      }
+    } catch (LockException e) {
+      DriverUtils.handleHiveException(driverContext, e, 13, null);
+    }
+  }
+  
   /**
    * Checks whether txn list has been invalidated while planning the query.
    * This would happen if query requires exclusive/semi-shared lock, and there has been a committed transaction
    * on the table over which the lock is required.
    */
-  boolean isValidTxnListState() throws LockException {
+  private boolean isValidTxnListState() throws LockException {
     // 1) Get valid txn list.
     String txnString = driverContext.getConf().get(ValidTxnList.VALID_TXNS_KEY);
     if (txnString == null) {
@@ -522,6 +543,35 @@ class DriverTxnHandler {
     tables.put(fullTableName, table);
   }
 
+  void rollback(CommandProcessorException cpe) throws CommandProcessorException {
+    try {
+      endTransactionAndCleanup(false);
+    } catch (LockException e) {
+      LOG.error("rollback() FAILED: " + cpe); //make sure not to loose
+      DriverUtils.handleHiveException(driverContext, e, 12, "Additional info in hive.log at \"rollback() FAILED\"");
+    }
+  }
+
+  void handleTransactionAfterExecution() throws CommandProcessorException {
+    try {
+      //since set autocommit starts an implicit txn, close it
+      if (driverContext.getTxnManager().isImplicitTransactionOpen() ||
+          driverContext.getPlan().getOperation() == HiveOperation.COMMIT) {
+        endTransactionAndCleanup(true);
+      } else if (driverContext.getPlan().getOperation() == HiveOperation.ROLLBACK) {
+        endTransactionAndCleanup(false);
+      } else if (!driverContext.getTxnManager().isTxnOpen() &&
+          driverContext.getQueryState().getHiveOperation() == HiveOperation.REPLLOAD) {
+        // repl load during migration, commits the explicit txn and start some internal txns. Call
+        // releaseLocksAndCommitOrRollback to do the clean up.
+        endTransactionAndCleanup(false);
+      }
+      // if none of the above is true, then txn (if there is one started) is not finished
+    } catch (LockException e) {
+      DriverUtils.handleHiveException(driverContext, e, 12, null);
+    }
+  }
+
   private List<String> getTransactionalTables(Map<String, Table> tables) {
     return tables.entrySet().stream()
       .filter(entry -> AcidUtils.isTransactionalTable(entry.getValue()))
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/DriverUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/DriverUtils.java
index 21e5f72..51ccfd9 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/DriverUtils.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/DriverUtils.java
@@ -23,6 +23,7 @@ import java.io.IOException;
 import org.apache.hadoop.hive.common.JavaUtils;
 import org.apache.hadoop.hive.common.ValidWriteIdList;
 import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.ql.exec.Utilities;
 import org.apache.hadoop.hive.ql.hooks.HookContext;
 import org.apache.hadoop.hive.ql.log.PerfLogger;
 import org.apache.hadoop.hive.ql.metadata.HiveException;
@@ -130,6 +131,18 @@ public final class DriverUtils {
     driverContext.getHookRunner().runFailureHooks(hookContext);
   }
 
+  public static void handleHiveException(DriverContext driverContext, HiveException e, int ret, String rootMsg)
+      throws CommandProcessorException {
+    String errorMessage = "FAILED: Hive Internal Error: " + Utilities.getNameMessage(e);
+    if (rootMsg != null) {
+      errorMessage += "\n" + rootMsg;
+    }
+    String sqlState = e.getCanonicalErrorMsg() != null ?
+        e.getCanonicalErrorMsg().getSQLState() : ErrorMsg.findSQLState(e.getMessage());
+    CONSOLE.printError(errorMessage + "\n" + StringUtils.stringifyException(e));
+    throw DriverUtils.createProcessorException(driverContext, ret, errorMessage, sqlState, e);
+  }
+
   public static CommandProcessorException createProcessorException(DriverContext driverContext, int ret,
       String errorMessage, String sqlState, Throwable downstreamError) {
     SessionState.getPerfLogger().cleanupPerfLogMetrics();
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/Executor.java b/ql/src/java/org/apache/hadoop/hive/ql/Executor.java
index 7af3cfb..62dc604 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/Executor.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/Executor.java
@@ -550,12 +550,7 @@ public class Executor {
       SessionState.get().getSparkSession().onQueryCompletion(driverContext.getQueryId());
     }
 
-    driverState.lock();
-    try {
-      driverState.executionFinished(executionError);
-    } finally {
-      driverState.unlock();
-    }
+    driverState.executionFinishedWithLocking(executionError);
 
     if (driverState.isAborted()) {
       LOG.info("Executing command(queryId={}) has been interrupted after {} seconds", driverContext.getQueryId(),
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHook.java b/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHook.java
index 94fde3b..28070b5 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHook.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHook.java
@@ -38,13 +38,11 @@ public interface HiveDriverRunHook extends Hook {
    * Invoked before Hive begins any processing of a command in the Driver,
    * notably before compilation and any customizable performance logging.
    */
-  public void preDriverRun(
-    HiveDriverRunHookContext hookContext) throws Exception;
+  void preDriverRun(HiveDriverRunHookContext hookContext) throws Exception;
 
   /**
    * Invoked after Hive performs any processing of a command, just before a
    * response is returned to the entity calling the Driver.
    */
-  public void postDriverRun(
-    HiveDriverRunHookContext hookContext) throws Exception;
+  void postDriverRun(HiveDriverRunHookContext hookContext) throws Exception;
 }
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContext.java b/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContext.java
index ce2b28d..5de4f24 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContext.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContext.java
@@ -29,6 +29,6 @@ import org.apache.hadoop.hive.common.classification.InterfaceStability;
 @InterfaceAudience.Public
 @InterfaceStability.Stable
 public interface HiveDriverRunHookContext extends Configurable{
-  public String getCommand();
-  public void setCommand(String command);
+  String getCommand();
+  void setCommand(String command);
 }
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/IDriver.java b/ql/src/java/org/apache/hadoop/hive/ql/IDriver.java
index cd05f52..73bca0b 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/IDriver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/IDriver.java
@@ -31,7 +31,7 @@ import org.apache.hadoop.hive.ql.processors.CommandProcessorException;
 import org.apache.hadoop.hive.ql.processors.CommandProcessorResponse;
 
 /**
- * Hive query executer driver
+ * Hive query executer driver.
  */
 @InterfaceAudience.Private
 @InterfaceStability.Unstable
@@ -53,6 +53,7 @@ public interface IDriver extends CommandProcessor {
   CommandProcessorResponse run(String command) throws CommandProcessorException;
 
   // create some "cover" to the result?
+  @SuppressWarnings("rawtypes")
   boolean getResults(List res) throws IOException;
 
   void setMaxRows(int maxRows);
@@ -65,7 +66,8 @@ public interface IDriver extends CommandProcessor {
 
   void resetFetch() throws IOException;
 
-  // close&destroy is used in seq coupling most of the time - the difference is either not clear; or not relevant - remove?
+  // close&destroy is used in seq coupling most of the time - the difference is either not clear; or not relevant
+  // remove?
   @Override
   void close();
   void destroy();
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
index 9568096..923f464 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java
@@ -350,7 +350,7 @@ public class GenericUDTFGetSplits extends GenericUDTF {
         driver.releaseResources();
         HiveConf.setVar(conf, ConfVars.HIVE_EXECUTION_MODE, originalMode);
         try {
-          driver.run(ctas, false);
+          driver.run(ctas);
         } catch (CommandProcessorException e) {
           throw new HiveException("Failed to create temp table [" + tableName + "]", e);
         }