@Override
  protected String addLimitToQuery(String sql, int limit) {
    if (limit == -1) {
      return sql;
    }
    return sql + " LIMIT " + limit;
  }
DB2 specific data accessor. DB2 JDBC drivers works similar to Postgres, so the current
implementation of DB2DatabaseAccessor is the same as PostgresDatabaseAccessor
jdbc-handler/src/main/java/org/apache/hive/storage/jdbc/dao/DB2DatabaseAccessor.java