String queryMonthForCluster(String clusterName) throws SQLException {
    try (Connection connection = dataSource.getConnection()) {
      try (PreparedStatement queryStatement = connection.prepareStatement(queryMonthSqlForCluster)) {
        long startTimeMs = System.currentTimeMillis();
        queryStatement.setString(1, clusterName);
        try (ResultSet resultSet = queryStatement.executeQuery()) {
          metrics.readTimeMs.update(System.currentTimeMillis() - startTimeMs);
          metrics.readSuccessCount.inc();
          if (resultSet.next()) {
            return resultSet.getString(MONTH_COLUMN);
          }
        }
        return "";
      }
    } catch (SQLException e) {
      metrics.readFailureCount.inc();
      logger.error(
          String.format("Failed to execute query on %s, with parameter %s", AGGREGATED_ACCOUNT_REPORTS_MONTH_TABLE,
              clusterName), e);
      throw e;
    }
  }
Return the month value in table {@link #AGGREGATED_ACCOUNT_REPORTS_MONTH_TABLE}.
@param clusterName the clusterName.
@return The month value in string format, like "2020-01".
@throws SQLException
ambry-mysql/src/main/java/com/github/ambry/accountstats/AggregatedAccountReportsDao.java