Skip to content

Commit

Permalink
Fix billing_period splitting in kpi_ebs_snap_view sql query (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricweider authored Dec 16, 2024
1 parent 2126e5d commit 9df9b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cid/builtin/core/data/queries/kpi/kpi_ebs_snap_view.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ CREATE OR REPLACE VIEW kpi_ebs_snap AS
-- Step 2: Filter CUR to return all ebs ec2 snapshot usage data
snapshot_usage_all_time AS (
SELECT
split_part(billing_period, '/', 1) year
, split_part(billing_period, '/', 2) month
split_part(billing_period, '-', 1) year
, split_part(billing_period, '-', 2) month
, bill_billing_period_start_date billing_period
, line_item_usage_start_date usage_start_date
, bill_payer_account_id payer_account_id
Expand Down

0 comments on commit 9df9b34

Please sign in to comment.