Skip to content

Commit

Permalink
🚑 Fix for Billing -> costByAnalysis report. (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
milo-hyben authored Jun 4, 2024
1 parent 01bf58c commit 7f81335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/python/tables/bq/billing_daily_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ async def get_batch_cost_summary(
ORDER BY batch_id, job_id, cost desc
)
, jskuacc AS (
SELECT batch_id, job_id, ARRAY_AGG(STRUCT(sku, cost)) as skus
SELECT batch_id, CAST(job_id AS STRING) as job_id, ARRAY_AGG(STRUCT(sku, cost)) as skus
FROM jsku
GROUP BY batch_id, job_id
)
,j AS (
SELECT d.batch_id, d.job_id, d.job_name, sum(d.cost) AS cost,
SELECT d.batch_id, CAST(d.job_id AS STRING) as job_id, d.job_name, sum(d.cost) AS cost,
MIN(usage_start_time) AS usage_start_time,
max(usage_end_time) AS usage_end_time
FROM d
Expand Down

0 comments on commit 7f81335

Please sign in to comment.