@Override
  protected String addLimitAndOffsetToQuery(String sql, int limit, int offset) {
    if (offset == 0) {
      return addLimitToQuery(sql, limit);
    } else {
      if (limit == -1) {
        return sql;
      }
      return sql + " LIMIT " + limit + " OFFSET " + offset;
    }
  }
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