diff --git a/warehouse/metrics_mesh/models/timeseries_metrics_by_collection_v0.sql b/warehouse/metrics_mesh/models/timeseries_metrics_by_collection_v0.sql index ee74fa59c..cd552a14f 100644 --- a/warehouse/metrics_mesh/models/timeseries_metrics_by_collection_v0.sql +++ b/warehouse/metrics_mesh/models/timeseries_metrics_by_collection_v0.sql @@ -2,7 +2,7 @@ MODEL ( name metrics.timeseries_metrics_by_collection_v0, kind VIEW ); -WITH all_timeseries_metrics_by_artifact AS ( +WITH all_timeseries_metrics_by_collection AS ( SELECT @oso_id('OSO', 'oso', metric) AS metric_id, to_collection_id AS collection_id, metrics_sample_date AS sample_date, @@ -15,4 +15,4 @@ SELECT metric_id::String, sample_date::Date, amount::Float64, unit::Nullable(String) -FROM all_timeseries_metrics_by_artifact \ No newline at end of file +FROM all_timeseries_metrics_by_collection \ No newline at end of file diff --git a/warehouse/metrics_mesh/models/timeseries_metrics_by_project_v0.sql b/warehouse/metrics_mesh/models/timeseries_metrics_by_project_v0.sql index 2911cccf6..e24c8c482 100644 --- a/warehouse/metrics_mesh/models/timeseries_metrics_by_project_v0.sql +++ b/warehouse/metrics_mesh/models/timeseries_metrics_by_project_v0.sql @@ -2,7 +2,7 @@ MODEL ( name metrics.timeseries_metrics_by_project_v0, kind VIEW ); -WITH all_timeseries_metrics_by_artifact AS ( +WITH all_timeseries_metrics_by_project AS ( SELECT @oso_id('OSO', 'oso', metric) AS metric_id, to_project_id AS project_id, metrics_sample_date AS sample_date, @@ -15,4 +15,4 @@ SELECT metric_id::String, sample_date::Date, amount::Float64, unit::Nullable(String) -FROM all_timeseries_metrics_by_artifact \ No newline at end of file +FROM all_timeseries_metrics_by_project \ No newline at end of file