From 32c48010b762434c55674ab5dd4310bc994a6c29 Mon Sep 17 00:00:00 2001 From: Iakov Gan Date: Sat, 11 Nov 2023 10:36:53 +0100 Subject: [PATCH] fix hourly_view --- cid/builtin/core/data/queries/cudos/hourly_view_sp_ri.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cid/builtin/core/data/queries/cudos/hourly_view_sp_ri.sql b/cid/builtin/core/data/queries/cudos/hourly_view_sp_ri.sql index 3bd35142..d8dbc4e1 100644 --- a/cid/builtin/core/data/queries/cudos/hourly_view_sp_ri.sql +++ b/cid/builtin/core/data/queries/cudos/hourly_view_sp_ri.sql @@ -13,11 +13,11 @@ CREATE OR REPLACE VIEW hourly_view AS , "line_item_usage_start_date" "usage_date" , "bill_payer_account_id" "payer_account_id" , "line_item_usage_account_id" "linked_account_id" - , CAST('' AS varchar) "savings_plan_a_r_n" + , "savings_plan_savings_plan_a_r_n" "savings_plan_a_r_n" , "reservation_reservation_a_r_n" "reservation_a_r_n" , "sum"("line_item_unblended_cost") "unblended_cost" , "sum"("reservation_effective_cost") "reservation_effective_cost" - , CAST(0 AS double) "savings_plan_effective_cost" + , "sum"("savings_plan_savings_plan_effective_cost") "savings_plan_effective_cost" , "sum"("line_item_usage_amount") "usage_quantity" FROM "${cur_table_name}"