Skip to content

Commit 2a31e06

Browse files
Make date rather than timestamp
Co-authored-by: summer-mothwood <summer.mothwood@innovation.ca.gov>
1 parent 7535ff1 commit 2a31e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transform/models/staging/snowflake_cost_tracking/stg_warehouse_metering_history.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ warehouse_metering_history AS (
3131
organization_name,
3232
account_name,
3333
warehouse_name,
34-
date_trunc(DAY, start_time) AS usage_date,
34+
to_date(start_time) AS usage_date,
3535
sum(credits_used) AS credits_used,
3636
sum(credits_used_compute) AS credits_used_compute,
3737
sum(credits_used_cloud_services) AS credits_used_cloud_services

0 commit comments

Comments
 (0)