-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undo service_type
transformation in stg_rate_sheet_daily
and fix service_type
filters in cost_per_query
and hourly_spend
#151
Merged
NiallRees
merged 5 commits into
get-select:main
from
stumelius:feat/undo-service-type-transformation
May 6, 2024
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
798d7d1
Undo service_type transformation in stg_rate_sheet_daily
stumelius 970bc7e
Replace service_type='COMPUTE' filters with service_type='WAREHOUSE_M…
stumelius f2c6209
Fix service_type filters in hourly_spend
stumelius 4ebd1b6
Merge branch 'main' into feat/undo-service-type-transformation
NiallRees d0458d5
Cost per query adjustment
NiallRees File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,7 +102,7 @@ query_cost as ( | |
and query_seconds_per_hour.hour = credits_billed_hourly.hour | ||
inner join {{ ref('daily_rates') }} as daily_rates | ||
on date(query_seconds_per_hour.start_time) = daily_rates.date | ||
and daily_rates.service_type = 'COMPUTE' | ||
and daily_rates.service_type = 'WAREHOUSE_METERING' | ||
and daily_rates.usage_type = 'compute' | ||
), | ||
|
||
|
@@ -188,10 +188,10 @@ inner join credits_billed_daily | |
on date(all_queries.start_time) = credits_billed_daily.date | ||
left join {{ ref('daily_rates') }} as daily_rates | ||
on date(all_queries.start_time) = daily_rates.date | ||
and daily_rates.service_type = 'COMPUTE' | ||
and daily_rates.service_type = 'WAREHOUSE_METERING' | ||
and daily_rates.usage_type = 'cloud services' | ||
inner join {{ ref('daily_rates') }} as current_rates | ||
on current_rates.is_latest_rate | ||
and current_rates.service_type = 'COMPUTE' | ||
and current_rates.service_type = 'WAREHOUSE_METERING' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here - CLOUD_SERVICES |
||
and current_rates.usage_type = 'cloud services' | ||
order by all_queries.start_time asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably be CLOUD_SERVICES based on the data in daily rates