-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from jairus-m/hotfix/missing-data
Hotfix: address missing data
- Loading branch information
Showing
10 changed files
with
63 additions
and
13 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ with raw_activities AS ( | |
) | ||
|
||
SELECT * | ||
FROM raw_activities | ||
FROM raw_activities |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
with | ||
|
||
activity_totals as ( | ||
select count(*) as total_activities from {{ ref('fct_activities') }} | ||
) | ||
|
||
select * | ||
from activity_totals | ||
where total_activities < 2000 | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
with | ||
|
||
cycling_totals as ( | ||
select count(*) as total_activities | ||
from {{ ref('fct_activities') }} as fct | ||
left join {{ ref('dim_activities') }} as dim | ||
on fct.id = dim.id | ||
where sport_type = 'Cycling' | ||
and average_watts is not null | ||
) | ||
|
||
select * | ||
from cycling_totals | ||
where total_activities < 1000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import sys | ||
from dagster import AssetChecksDefinition | ||
|
||
from .energy_prediction import * | ||
|
||
asset_checks = [ | ||
getattr(sys.modules[__name__], name) | ||
for name in dir(sys.modules[__name__]) | ||
if isinstance(getattr(sys.modules[__name__], name), AssetChecksDefinition) | ||
] | ||
|
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
Binary file not shown.