"dimension_name", "value");
sql = String.format(FIND_BY_METRIC_DEF_SQL, unionAllStatement,
metricDefinition.dimensions.size());
}
Query<Map<String, Object>> query = h.createQuery(sql).bind("metric_name",
<BUG>metricDefinition.name);
List<Map<String, Object>> rows = query.list();</BUG>
List<SubAlarm> subAlarms = new ArrayList<SubAlarm>(rows.size());
for (Map<String, Object> row : rows) {
String subAlarmId = (String) row.get("id");

"dimension_name", "value");
sql = String.format(FIND_BY_METRIC_DEF_SQL, unionAllStatement,
metricDefinition.dimensions.size());
}
Query<Map<String, Object>> query = h.createQuery(sql).bind("metric_name",
metricDefinition.name).bind("tenant_id", metricDefinitionTenantId.tenantId);
List<Map<String, Object>> rows = query.list();
List<SubAlarm> subAlarms = new ArrayList<SubAlarm>(rows.size());
for (Map<String, Object> row : rows) {
String subAlarmId = (String) row.get("id");
