Skip to content

Commit

Permalink
missing where clause (#5442)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Jan 12, 2025
1 parent 5687d38 commit 13a33de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,8 @@ WITH cte_total_pv_capacity as (
AND strpos(aws.resource_id, ocp.csi_volume_handle) > 0
AND ocp.csi_volume_handle is not null
AND ocp.csi_volume_handle != ''
WHERE ocp.year = {{year}}
WHERE ocp.source = {{ocp_source_uuid}}
AND ocp.year = {{year}}
AND lpad(ocp.month, 2, '0') = {{month}}
AND ocp.usage_start >= {{start_date}}
AND ocp.usage_start < date_add('day', 1, {{end_date}})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ WITH cte_total_pv_capacity as (
OR
(lower(ocp.csi_volume_handle) = lower(azure.resource_id))
)
WHERE ocp.year = {{year}}
WHERE ocp.source = {{ocp_source_uuid}}
AND ocp.year = {{year}}
AND lpad(ocp.month, 2, '0') = {{month}}
AND ocp.usage_start >= {{start_date}}
AND ocp.usage_start < date_add('day', 1, {{end_date}})
Expand Down

0 comments on commit 13a33de

Please sign in to comment.