Skip to content

Commit ffb55fb

Browse files
authored
[COST-5238] Fully distribute network unattributed costs (#5238)
1 parent e98441e commit ffb55fb

3 files changed

+0
-6
lines changed

koku/masu/database/trino_sql/gcp/openshift/reporting_ocpgcpcostlineitem_daily_summary_resource_id.sql

-2
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpgcpcostlineitem_project_daily
762762
pod_cost,
763763
pod_credit,
764764
tags,
765-
cost_category_id,
766765
gcp_source,
767766
ocp_source,
768767
year,
@@ -802,7 +801,6 @@ SELECT gcp.uuid as gcp_uuid,
802801
max(gcp.unblended_cost) AS pod_cost,
803802
cast(NULL AS double) AS pod_credit,
804803
max(gcp.labels) as tags,
805-
max(ocp.cost_category_id) as cost_category_id,
806804
{{gcp_source_uuid}} as gcp_source,
807805
{{ocp_source_uuid}} as ocp_source,
808806
cast(year(max(gcp.usage_start)) as varchar) as year,

koku/masu/database/trino_sql/reporting_ocpawscostlineitem_daily_summary.sql

-2
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpawscostlineitem_project_daily
779779
pod_labels,
780780
tags,
781781
aws_cost_category,
782-
cost_category_id,
783782
aws_source,
784783
ocp_source,
785784
year,
@@ -823,7 +822,6 @@ SELECT
823822
max(ocp.pod_labels),
824823
cast(NULL AS varchar) AS tags,
825824
cast(NULL AS varchar) AS aws_cost_category,
826-
max(cost_category_id),
827825
max({{aws_source_uuid}}) AS aws_source,
828826
max({{ocp_source_uuid}}) AS ocp_source,
829827
max(cast(year(aws.usage_start) AS varchar)) AS year,

koku/masu/database/trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql

-2
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpazurecostlineitem_project_dai
906906
pod_cost,
907907
project_markup_cost,
908908
tags,
909-
cost_category_id,
910909
azure_source,
911910
ocp_source,
912911
year,
@@ -939,7 +938,6 @@ SELECT azure.uuid as azure_uuid,
939938
max(cast(azure.pretax_cost as decimal(24,9))) as pod_cost,
940939
max(cast(azure.pretax_cost as decimal(24,9))) * cast({{markup}} as decimal(24,9)) as project_markup_cost,
941940
max(azure.tags) as tags,
942-
max(ocp.cost_category_id) as cost_category_id,
943941
{{azure_source_uuid}} as azure_source,
944942
{{ocp_source_uuid}} as ocp_source,
945943
max(azure.year) as year,

0 commit comments

Comments
 (0)