private OperationStatus runAsyncAndWait(SessionHandle sessionHandle, String queryString,
      Map<String, String> confOverlay, OperationState expectedState,
      long longPollingTimeout) throws HiveSQLException {
    // Timeout for the iteration in case of asynchronous execute
    confOverlay.put(
        HiveConf.ConfVars.HIVE_SERVER2_LONG_POLLING_TIMEOUT.varname, longPollingTimeout + "ms");
    OperationHandle h = client.executeStatementAsync(sessionHandle, queryString, confOverlay);
    return waitForAsyncQuery(h, expectedState, longPollingTimeout);
  }
Sets up a test specific table with the given column definitions and config
@param tableName
@param columnDefinitions
@param confOverlay
@throws Exception
service/src/test/org/apache/hive/service/cli/CLIServiceTest.java