Skip to content

Commit

Permalink
Merge pull request #101 from snowplow/release/mobile/bigquery/1.1.0
Browse files Browse the repository at this point in the history
Release/mobile/bigquery/1.1.0
  • Loading branch information
bill-warner authored Jun 15, 2021
2 parents 847a2e6 + 1ec4098 commit ead84ed
Show file tree
Hide file tree
Showing 32 changed files with 57 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"bigquery_model_version": "1.0.0",
"test_suite_version": "1.0.3",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
"meta": {
"great_expectations.__version__": "0.12.0",
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
],
"meta": {
"versions": {
"test_suite_version": "1.0.2",
"test_suite_version": "1.0.3",
"redshift_model_version": "1.1.0",
"bigquery_model_version": "1.0.0",
"bigquery_model_version": "1.1.0",
"snowflake_model_version": "1.0.0"
},
"great_expectations.__version__": "0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@
"bigquery_temp_table": "ge_test_scratch_mobile_usr_this_run"
},
"expectation_suite_names": ["mobile.v1.mobile_users"]
},
{
"batch_kwargs": {

"table": "scratch.mobile_staging_reconciliation",
"datasource": "bigquery",
"bigquery_temp_table": "ge_test_scratch_mobile_stg_recon"
},
"expectation_suite_names": ["mobile.v1.mobile_staging_reconciliation"]
}
]
}
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
BigQuery Mobile Version 1.1.0 (2021-06-15)
---------------------------------------
BigQuery Mobile: Add mobile_staging_reconcilition to temp tables validation config (Close #100)
BigQuery Mobile: Fix column order in events_this_run to allow for events_staged table migration (Close #99)

Redshift Mobile Version 1.1.0 (2021-05-17)
---------------------------------------
Redshift Mobile: Increase session_id character limit in manifest (Close #93)
Expand Down
5 changes: 5 additions & 0 deletions mobile/v1/bigquery/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 1.1.0 (2021-06-15)
--------------------------
BigQuery Mobile: Add mobile_staging_reconcilition to temp tables validation config (Close #100)
BigQuery Mobile: Fix column order in events_this_run to allow for events_staged table migration (Close #99)

Version 1.0.0 (2021-04-26)
--------------------------
Mobile: Add BigQuery mobile model v1 (close #73)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:output_schema: derived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:output_schema: derived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:output_schema: derived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:input_schema: atomic
:scratch_schema: scratch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:output_schema: derived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:output_schema: derived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:upsert_lookback_days:
:skip_derived:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:enabled: false
:entropy: ""
:upsert_lookback_days:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:upsert_lookback_days:
:stage_next: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:skip_derived:
:upsert_lookback_days:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:scratch_schema: scratch
:output_schema: derived
:model_version: bigquery/mobile/1.1.0
:entropy: ""
:cleanup_mode: all
:ends_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:entropy: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:project:
:region:
:variables:
:model_version: bigquery/mobile/1.0.0
:model_version: bigquery/mobile/1.1.0
:model: mobile
:scratch_schema: scratch
:entropy: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ SET (LOWER_LIMIT, UPPER_LIMIT) = (SELECT AS STRUCT lower_limit, upper_limit FROM
e.event_id
)
SELECT
*,
ROW_NUMBER() OVER(PARTITION BY d.session_id ORDER BY d.derived_tstamp) AS event_index_in_session
SELECT
ROW_NUMBER() OVER(PARTITION BY d.session_id ORDER BY d.derived_tstamp) AS event_index_in_session,
d.*
FROM
deduped_events AS d
Expand Down

0 comments on commit ead84ed

Please sign in to comment.