Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COST-5328] Fully distribute network unattributed costs #5238

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpgcpcostlineitem_project_daily
pod_cost,
pod_credit,
tags,
cost_category_id,
gcp_source,
ocp_source,
year,
Expand Down Expand Up @@ -802,7 +801,6 @@ SELECT gcp.uuid as gcp_uuid,
max(gcp.unblended_cost) AS pod_cost,
cast(NULL AS double) AS pod_credit,
max(gcp.labels) as tags,
max(ocp.cost_category_id) as cost_category_id,
{{gcp_source_uuid}} as gcp_source,
{{ocp_source_uuid}} as ocp_source,
cast(year(max(gcp.usage_start)) as varchar) as year,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpawscostlineitem_project_daily
pod_labels,
tags,
aws_cost_category,
cost_category_id,
aws_source,
ocp_source,
year,
Expand Down Expand Up @@ -823,7 +822,6 @@ SELECT
max(ocp.pod_labels),
cast(NULL AS varchar) AS tags,
cast(NULL AS varchar) AS aws_cost_category,
max(cost_category_id),
max({{aws_source_uuid}}) AS aws_source,
max({{ocp_source_uuid}}) AS ocp_source,
max(cast(year(aws.usage_start) AS varchar)) AS year,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ INSERT INTO hive.{{schema | sqlsafe}}.reporting_ocpazurecostlineitem_project_dai
pod_cost,
project_markup_cost,
tags,
cost_category_id,
azure_source,
ocp_source,
year,
Expand Down Expand Up @@ -939,7 +938,6 @@ SELECT azure.uuid as azure_uuid,
max(cast(azure.pretax_cost as decimal(24,9))) as pod_cost,
max(cast(azure.pretax_cost as decimal(24,9))) * cast({{markup}} as decimal(24,9)) as project_markup_cost,
max(azure.tags) as tags,
max(ocp.cost_category_id) as cost_category_id,
{{azure_source_uuid}} as azure_source,
{{ocp_source_uuid}} as ocp_source,
max(azure.year) as year,
Expand Down
Loading