Skip to content

Commit

Permalink
Coalesce to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallRees committed Jul 26, 2023
1 parent bc4b5a1 commit 9f56d38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/hourly_spend.sql
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ data_transfer_spend_hourly as (
null as storage_type,
null as warehouse_name,
null as database_name,
stg_usage_in_currency_daily.usage_in_currency/hours.hours_thus_far as spend,
coalesce(stg_usage_in_currency_daily.usage_in_currency/hours.hours_thus_far, 0) as spend,
spend as spend_net_cloud_services,
stg_usage_in_currency_daily.currency as currency
from hours
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_data_transfer_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ select
target_region,
bytes_transferred,
transfer_type
from {{ source('snowflake_account_usage', 'data_transfer_history')}}
from {{ source('snowflake_account_usage', 'data_transfer_history') }}

0 comments on commit 9f56d38

Please sign in to comment.