Add a few more fields to frontend metric batch API (#567)

This commit is contained in:
Yi (Alan) Wang 2017-06-22 09:09:24 -07:00 committed by Mars Lan
parent 68bb73f4a7
commit 4f9f7fc513

View File

@ -434,6 +434,11 @@ public class MetricsDAO extends AbstractMySQLOpenSourceDAO
metric.id = (int)row.get("metric_id");
metric.name = (String)row.get("metric_name");
metric.description = (String)row.get("metric_description");
Integer sourceId = (Integer) row.get("metric_source_dataset_id");
metric.sourceDatasetId = sourceId == null ? 0 : new Long(sourceId);
metric.owners = (String) row.get("owners");
metric.tags = (String) row.get("tags");
metric.urn = (String) row.get("urn");
metric.refID = (String)row.get("metric_ref_id");
metric.refIDType = (String)row.get("metric_ref_id_type");
metric.dashboardName = (String)row.get("dashboard_name");