Skip to content

Commit cb0bd6e

Browse files
committed
🚑 Fix for Billing -> costByAnalysis report.
1 parent 01bf58c commit cb0bd6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/python/tables/bq/billing_daily_extended.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ async def get_batch_cost_summary(
175175
ORDER BY batch_id, job_id, cost desc
176176
)
177177
, jskuacc AS (
178-
SELECT batch_id, job_id, ARRAY_AGG(STRUCT(sku, cost)) as skus
178+
SELECT batch_id, CAST(job_id AS STRING) as job_id, ARRAY_AGG(STRUCT(sku, cost)) as skus
179179
FROM jsku
180180
GROUP BY batch_id, job_id
181181
)
182182
,j AS (
183-
SELECT d.batch_id, d.job_id, d.job_name, sum(d.cost) AS cost,
183+
SELECT d.batch_id, CAST(d.job_id AS STRING) as job_id, d.job_name, sum(d.cost) AS cost,
184184
MIN(usage_start_time) AS usage_start_time,
185185
max(usage_end_time) AS usage_end_time
186186
FROM d

0 commit comments

Comments
 (0)