-
Notifications
You must be signed in to change notification settings - Fork 12
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 #86 from snowplow/release/mobile/snowflake/1.0.0
Add Snowflake mobile model v1 (Close #85)
- Loading branch information
Showing
105 changed files
with
5,289 additions
and
8 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
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
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
50 changes: 50 additions & 0 deletions
50
.test/great_expectations/validation_configs/mobile/v1/snowflake/perm_tables.json
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,50 @@ | ||
{ | ||
"validation_operator_name": "action_list_operator", | ||
"batches": [ | ||
{ | ||
"batch_kwargs": { | ||
"schema": "derived", | ||
"table": "mobile_screen_views", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_derived_mobile_sv" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_screen_views"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"query": "SELECT session_id, count(DISTINCT screen_views_in_session) AS dist_svis_values, count(*) - count(DISTINCT screen_view_in_session_index) AS all_minus_dist_svisi, count(*) - count(DISTINCT screen_view_id) AS all_minus_dist_svids FROM derived.mobile_screen_views GROUP BY 1", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "ge_test_derived_mobile_sv_in_sess_values" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_screen_view_in_session_values"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "derived", | ||
"table": "mobile_sessions", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_derived_mobile_sess" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_sessions"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "derived", | ||
"table": "mobile_users", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_derived_mobile_usr" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_users"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"query": "SELECT *, rows_this_run - distinct_key_count AS diff_rows FROM derived.datamodel_metadata WHERE model = 'mobile'", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "ge_test_derived_mobile_metadata" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_metadata"] | ||
} | ||
] | ||
} |
68 changes: 68 additions & 0 deletions
68
.test/great_expectations/validation_configs/mobile/v1/snowflake/temp_tables.json
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,68 @@ | ||
{ | ||
"validation_operator_name": "action_list_operator", | ||
"batches": [ | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_events_this_run", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_events_this_run" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_base"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_events_staged", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_events_staged" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_base"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_screen_views_this_run", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_sv_this_run" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_screen_views"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_screen_views_staged", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_sv_staged" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_screen_views"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_sessions_this_run", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_sess_this_run" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_sessions"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_users_this_run", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_usr_this_run" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_users"] | ||
}, | ||
{ | ||
"batch_kwargs": { | ||
"schema": "scratch", | ||
"table": "mobile_staging_reconciliation", | ||
"datasource": "snowflake", | ||
"snowflake_transient_table": "scratch.ge_test_scratch_mobile_staging_reconciliation" | ||
}, | ||
"expectation_suite_names": ["mobile.v1.mobile_staging_reconciliation"] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Version 1.0.0 (2021-05-06) | ||
-------------------------- | ||
Add Snowflake mobile model v1 (Close #85) |
Oops, something went wrong.