@VisibleForTesting
  public int compile(String command, boolean resetTaskIds) {
    try {
      compile(command, resetTaskIds, false);
      return 0;
    } catch (CommandProcessorException cpr) {
      return cpr.getErrorCode();
    }
  }
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
ql/src/java/org/apache/hadoop/hive/ql/Driver.java