Skip to content

Commit

Permalink
Add missing where clause to cte (#5453)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcouzens authored Jan 17, 2025
1 parent 931e759 commit db9fce8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ WITH cte_rankings AS (
SELECT pds.gcp_uuid,
count(*) as gcp_uuid_count
FROM hive.{{schema | sqlsafe}}.reporting_ocpgcpcostlineitem_project_daily_summary_temp AS pds
WHERE pds.ocp_source = {{ocp_source_uuid}} AND year = {{year}} AND month = {{month}}
GROUP BY gcp_uuid
)
SELECT pds.gcp_uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ WITH cte_rankings AS (
SELECT pds.gcp_uuid,
count(*) as gcp_uuid_count
FROM hive.{{schema | sqlsafe}}.reporting_ocpgcpcostlineitem_project_daily_summary_temp AS pds
WHERE pds.ocp_source = {{ocp_source_uuid}} AND year = {{year}} AND month = {{month}}
GROUP BY gcp_uuid
)
SELECT pds.gcp_uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ WITH cte_rankings AS (
SELECT pds.aws_uuid,
count(*) as aws_uuid_count
FROM hive.{{schema | sqlsafe}}.reporting_ocpawscostlineitem_project_daily_summary_temp AS pds
WHERE pds.ocp_source = {{ocp_source_uuid}} AND year = {{year}} AND month = {{month}}
GROUP BY aws_uuid
)
SELECT pds.aws_uuid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ WITH cte_rankings AS (
SELECT pds.azure_uuid,
count(*) as azure_uuid_count
FROM hive.{{schema | sqlsafe}}.reporting_ocpazurecostlineitem_project_daily_summary_temp AS pds
WHERE pds.ocp_source = {{ocp_source_uuid}} AND year = {{year}} AND month = {{month}}
GROUP BY azure_uuid
)
SELECT pds.azure_uuid,
Expand Down

0 comments on commit db9fce8

Please sign in to comment.