void copyAggregatedUsageToMonthlyAggregatedTableForCluster(String clusterName) throws SQLException {
    try (Connection connection = dataSource.getConnection()) {
      try (PreparedStatement queryStatement = connection.prepareStatement(copySqlForCluster)) {
        long startTimeMs = System.currentTimeMillis();
        queryStatement.setString(1, clusterName);
        queryStatement.executeUpdate();
        metrics.copyTimeMs.update(System.currentTimeMillis() - startTimeMs);
        metrics.copySuccessCount.inc();
      }
    } catch (SQLException e) {
      metrics.copyFailureCount.inc();
      logger.error(
          String.format("Failed to execute copy on %s, with parameter %s", MONTHLY_AGGREGATED_ACCOUNT_REPORTS_TABLE,
              clusterName), e);
      throw e;
    }
  }
Copy rows in table {@link #AGGREGATED_ACCOUNT_REPORTS_TABLE} to {@link #MONTHLY_AGGREGATED_ACCOUNT_REPORTS_TABLE}.
@param clusterName the clusterName.
@throws SQLException
ambry-mysql/src/main/java/com/github/ambry/accountstats/AggregatedAccountReportsDao.java