From 20283527ab4d3ff441fa70f7db5f92c5eb53f3ef Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Wed, 9 Feb 2022 15:20:01 +0000 Subject: [PATCH 1/8] Snowflake web: Fix se_label column length in events_staged (Close #109) --- .../sql-runner/sql/standard/01-base/01-main/00-setup-base.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql index f72ad937..0110c690 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql @@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS {{.scratch_schema}}.events_staged{{.entropy}} ( se_category VARCHAR(1000), se_action VARCHAR(1000), - se_label VARCHAR(1000), + se_label VARCHAR(4096), se_property VARCHAR(1000), se_value DOUBLE PRECISION, From c1dc2bc23557c19d2f4ec10b89552e9c3862a1ed Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Wed, 9 Feb 2022 15:35:34 +0000 Subject: [PATCH 2/8] Snowflake web: Fix varchar length for yauaa columns (Close #97) --- .../01-main/00-setup-page-views.sql | 32 +++++++++---------- .../03-sessions/01-main/00-setup-sessions.sql | 32 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql index 211418ab..238c191a 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql @@ -185,24 +185,24 @@ CREATE TABLE IF NOT EXISTS {{.output_schema}}.page_views{{.entropy}} ( -- optional YAUAA fields device_class VARCHAR, agent_class VARCHAR, - agent_name VARCHAR(100), - agent_name_version VARCHAR(200), - agent_name_version_major VARCHAR(120), - agent_version VARCHAR(100), - agent_version_major VARCHAR(20), - device_brand VARCHAR(50), - device_name VARCHAR(100), - device_version VARCHAR(100), + agent_name VARCHAR, + agent_name_version VARCHAR, + agent_name_version_major VARCHAR, + agent_version VARCHAR, + agent_version_major VARCHAR, + device_brand VARCHAR, + device_name VARCHAR, + device_version VARCHAR, layout_engine_class VARCHAR, - layout_engine_name VARCHAR(100), - layout_engine_name_version VARCHAR(150), - layout_engine_name_version_major VARCHAR(120), - layout_engine_version VARCHAR(50), - layout_engine_version_major VARCHAR(20), + layout_engine_name VARCHAR, + layout_engine_name_version VARCHAR, + layout_engine_name_version_major VARCHAR, + layout_engine_version VARCHAR, + layout_engine_version_major VARCHAR, operating_system_class VARCHAR, - operating_system_name VARCHAR(100), - operating_system_name_version VARCHAR(150), - operating_system_version VARCHAR(50) + operating_system_name VARCHAR, + operating_system_name_version VARCHAR, + operating_system_version VARCHAR ); -- Create staging table - acts as input to sessions step diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql index 38c206bf..8f64d235 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql @@ -188,24 +188,24 @@ CREATE TABLE IF NOT EXISTS {{.output_schema}}.sessions{{.entropy}} ( -- optional YAUAA fields device_class VARCHAR, agent_class VARCHAR, - agent_name VARCHAR(100), - agent_name_version VARCHAR(200), - agent_name_version_major VARCHAR(120), - agent_version VARCHAR(100), - agent_version_major VARCHAR(20), - device_brand VARCHAR(50), - device_name VARCHAR(100), - device_version VARCHAR(100), + agent_name VARCHAR, + agent_name_version VARCHAR, + agent_name_version_major VARCHAR, + agent_version VARCHAR, + agent_version_major VARCHAR, + device_brand VARCHAR, + device_name VARCHAR, + device_version VARCHAR, layout_engine_class VARCHAR, - layout_engine_name VARCHAR(100), - layout_engine_name_version VARCHAR(150), - layout_engine_name_version_major VARCHAR(120), - layout_engine_version VARCHAR(50), - layout_engine_version_major VARCHAR(20), + layout_engine_name VARCHAR, + layout_engine_name_version VARCHAR, + layout_engine_name_version_major VARCHAR, + layout_engine_version VARCHAR, + layout_engine_version_major VARCHAR, operating_system_class VARCHAR, - operating_system_name VARCHAR(100), - operating_system_name_version VARCHAR(150), - operating_system_version VARCHAR(50) + operating_system_name VARCHAR, + operating_system_name_version VARCHAR, + operating_system_version VARCHAR ); -- Staged manifest table as input to users step From cf834731bd05af77feeb0aedf2c370cceb4f3329 Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Wed, 9 Feb 2022 17:08:32 +0000 Subject: [PATCH 3/8] Snowflake web: Fix logic in users_sessions_this_run to account for sparse data (Close #120) --- .../sql/standard/04-users/01-main/03-users-sessions-this-run.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql index 16b365f0..0c4d1272 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql @@ -27,5 +27,4 @@ AS ( ON a.domain_userid = b.domain_userid WHERE a.start_tstamp >= (SELECT lower_limit FROM {{.scratch_schema}}.users_limits{{.entropy}}) - AND a.start_tstamp <= (SELECT upper_limit FROM {{.scratch_schema}}.users_limits{{.entropy}}) ); From dd0b33666aba9dabbcf98c52a3eaf886f24f6433 Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Wed, 9 Feb 2022 17:22:14 +0000 Subject: [PATCH 4/8] Snowflake web: Update copyright notices (Close #124) --- .../02-page-views-join/01-main/00-setup-page-views-join.sql | 2 +- .../02-page-views-join/01-main/01-page-views-join-staged.sql | 2 +- .../02-page-views-join/01-main/02-page-views-join-upsert.sql | 2 +- .../99-complete/99-page-views-join-cleanup.sql | 2 +- .../XX-destroy/XX-destroy-page-views-join.sql | 2 +- .../sql/standard/00-setup/01-main/00-setup-metadata.sql | 2 +- .../sql/standard/00-setup/01-main/01-stored-procedures.sql | 2 +- .../sql/standard/00-setup/99-complete/99-metadata-cleanup.sql | 2 +- .../sql/standard/00-setup/XX-destroy/XX-destroy-metadata.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/00-setup-base.sql | 2 +- .../sql/standard/01-base/01-main/01-new-events-limits.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/02-run-manifest.sql | 2 +- .../sql/standard/01-base/01-main/03-sessions-to-process.sql | 2 +- .../sql/standard/01-base/01-main/04-sessions-to-include.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/05-batch-limits.sql | 2 +- .../sql/standard/01-base/01-main/06-events-this-run.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/07-duplicates.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/08-metadata.sql | 2 +- .../sql-runner/sql/standard/01-base/01-main/09-commit-base.sql | 2 +- .../sql/standard/01-base/99-complete/98-base-manifest.sql | 2 +- .../sql/standard/01-base/99-complete/99-base-cleanup.sql | 2 +- .../sql/standard/01-base/XX-destroy/XX-destroy-base.sql | 2 +- .../sql/standard/02-page-views/01-main/00-setup-page-views.sql | 2 +- .../sql/standard/02-page-views/01-main/01-page-view-events.sql | 2 +- .../standard/02-page-views/01-main/02-page-view-duplicates.sql | 2 +- .../sql/standard/02-page-views/01-main/03-engaged-time.sql | 2 +- .../sql/standard/02-page-views/01-main/04-scroll-depth.sql | 2 +- .../sql/standard/02-page-views/01-main/05-page-views.sql | 2 +- .../standard/02-page-views/01-main/06-page-views-metadata.sql | 2 +- .../sql/standard/02-page-views/01-main/07-commit-page-views.sql | 2 +- .../02-page-views/99-complete/98-truncate-base-staged.sql | 2 +- .../02-page-views/99-complete/99-page-views-cleanup.sql | 2 +- .../standard/02-page-views/XX-destroy/XX-destroy-page-views.sql | 2 +- .../sql/standard/03-sessions/01-main/00-setup-sessions.sql | 2 +- .../sql/standard/03-sessions/01-main/01-sessions-aggs.sql | 2 +- .../sql/standard/03-sessions/01-main/02-sessions-lasts.sql | 2 +- .../sql-runner/sql/standard/03-sessions/01-main/03-sessions.sql | 2 +- .../sql/standard/03-sessions/01-main/04-sessions-metadata.sql | 2 +- .../standard/03-sessions/01-main/05-sessions-prep-manifest.sql | 2 +- .../sql/standard/03-sessions/01-main/06-commit-sessions.sql | 2 +- .../03-sessions/99-complete/98-truncate-page-views-staged.sql | 2 +- .../standard/03-sessions/99-complete/99-sessions-cleanup.sql | 2 +- .../sql/standard/03-sessions/XX-destroy/XX-destroy-sessions.sql | 2 +- .../sql-runner/sql/standard/04-users/01-main/00-setup-users.sql | 2 +- .../sql/standard/04-users/01-main/01-userids-this-run.sql | 2 +- .../sql/standard/04-users/01-main/02-users-limits.sql | 2 +- .../standard/04-users/01-main/03-users-sessions-this-run.sql | 2 +- .../sql-runner/sql/standard/04-users/01-main/04-users-aggs.sql | 2 +- .../sql-runner/sql/standard/04-users/01-main/05-users-lasts.sql | 2 +- .../sql-runner/sql/standard/04-users/01-main/06-users.sql | 2 +- .../sql/standard/04-users/01-main/07-users-metadata.sql | 2 +- .../sql/standard/04-users/01-main/08-commit-users.sql | 2 +- .../standard/04-users/99-complete/98-manifest-and-truncate.sql | 2 +- .../sql/standard/04-users/99-complete/99-users-cleanup.sql | 2 +- .../sql/standard/04-users/XX-destroy/XX-destroy-users.sql | 2 +- 55 files changed, 55 insertions(+), 55 deletions(-) diff --git a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/00-setup-page-views-join.sql b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/00-setup-page-views-join.sql index e407420e..d487598a 100644 --- a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/00-setup-page-views-join.sql +++ b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/00-setup-page-views-join.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/01-page-views-join-staged.sql b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/01-page-views-join-staged.sql index 6ea402b0..0aa9abbb 100644 --- a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/01-page-views-join-staged.sql +++ b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/01-page-views-join-staged.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/02-page-views-join-upsert.sql b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/02-page-views-join-upsert.sql index a6e008e6..b1656bc5 100644 --- a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/02-page-views-join-upsert.sql +++ b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/01-main/02-page-views-join-upsert.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/99-complete/99-page-views-join-cleanup.sql b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/99-complete/99-page-views-join-cleanup.sql index 82846c89..c923aab6 100644 --- a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/99-complete/99-page-views-join-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/99-complete/99-page-views-join-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/XX-destroy/XX-destroy-page-views-join.sql b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/XX-destroy/XX-destroy-page-views-join.sql index 000be9f3..b3d9fa1e 100644 --- a/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/XX-destroy/XX-destroy-page-views-join.sql +++ b/web/v1/snowflake/sql-runner/sql/custom/02-page-views-join/XX-destroy/XX-destroy-page-views-join.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/00-setup-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/00-setup-metadata.sql index 64911586..c081d381 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/00-setup-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/00-setup-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql index 5bfe75a8..c544c499 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/00-setup/99-complete/99-metadata-cleanup.sql b/web/v1/snowflake/sql-runner/sql/standard/00-setup/99-complete/99-metadata-cleanup.sql index 24c62f68..0f78e4f8 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/00-setup/99-complete/99-metadata-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/00-setup/99-complete/99-metadata-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/00-setup/XX-destroy/XX-destroy-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/00-setup/XX-destroy/XX-destroy-metadata.sql index 15c68270..9c4a7337 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/00-setup/XX-destroy/XX-destroy-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/00-setup/XX-destroy/XX-destroy-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql index 0110c690..f1ca99b5 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/01-new-events-limits.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/01-new-events-limits.sql index 0f2aa561..27b0d77d 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/01-new-events-limits.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/01-new-events-limits.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/02-run-manifest.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/02-run-manifest.sql index 0efc8276..2d1f708f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/02-run-manifest.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/02-run-manifest.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/03-sessions-to-process.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/03-sessions-to-process.sql index 5d648616..33a4b845 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/03-sessions-to-process.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/03-sessions-to-process.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/04-sessions-to-include.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/04-sessions-to-include.sql index 7252d57d..06885cc0 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/04-sessions-to-include.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/04-sessions-to-include.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/05-batch-limits.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/05-batch-limits.sql index a5e354d8..459a9d6f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/05-batch-limits.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/05-batch-limits.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/06-events-this-run.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/06-events-this-run.sql index b3d2455f..865be64d 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/06-events-this-run.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/06-events-this-run.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/07-duplicates.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/07-duplicates.sql index 64e82fcf..0de3de82 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/07-duplicates.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/07-duplicates.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/08-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/08-metadata.sql index 095de4c2..852ba35f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/08-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/08-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/09-commit-base.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/09-commit-base.sql index e5b7b8c5..115d19a0 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/09-commit-base.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/09-commit-base.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/98-base-manifest.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/98-base-manifest.sql index a13a7229..f772737e 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/98-base-manifest.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/98-base-manifest.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/99-base-cleanup.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/99-base-cleanup.sql index a1f43d85..6e1dc59f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/99-base-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/99-complete/99-base-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/XX-destroy/XX-destroy-base.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/XX-destroy/XX-destroy-base.sql index 8b665b39..7470ea98 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/XX-destroy/XX-destroy-base.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/XX-destroy/XX-destroy-base.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql index 238c191a..24825a87 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/00-setup-page-views.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/01-page-view-events.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/01-page-view-events.sql index 1828b443..7be61bb3 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/01-page-view-events.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/01-page-view-events.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/02-page-view-duplicates.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/02-page-view-duplicates.sql index 975e9e5d..973232aa 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/02-page-view-duplicates.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/02-page-view-duplicates.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/03-engaged-time.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/03-engaged-time.sql index 7a25ec13..e6ff8282 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/03-engaged-time.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/03-engaged-time.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/04-scroll-depth.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/04-scroll-depth.sql index 1735387e..ac95e286 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/04-scroll-depth.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/04-scroll-depth.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/05-page-views.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/05-page-views.sql index 82f049c5..84aebc0b 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/05-page-views.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/05-page-views.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/06-page-views-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/06-page-views-metadata.sql index 1632824e..290b2d2f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/06-page-views-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/06-page-views-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/07-commit-page-views.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/07-commit-page-views.sql index 15bfa1db..2ace8e79 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/07-commit-page-views.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/01-main/07-commit-page-views.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/98-truncate-base-staged.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/98-truncate-base-staged.sql index b4124ad4..38f2e21b 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/98-truncate-base-staged.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/98-truncate-base-staged.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/99-page-views-cleanup.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/99-page-views-cleanup.sql index f778b8cf..45960b70 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/99-page-views-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/99-complete/99-page-views-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/XX-destroy/XX-destroy-page-views.sql b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/XX-destroy/XX-destroy-page-views.sql index 4b849804..ed8574d6 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/02-page-views/XX-destroy/XX-destroy-page-views.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/02-page-views/XX-destroy/XX-destroy-page-views.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql index 8f64d235..19623a7e 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/00-setup-sessions.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/01-sessions-aggs.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/01-sessions-aggs.sql index b15f8b3b..bd19735f 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/01-sessions-aggs.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/01-sessions-aggs.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/02-sessions-lasts.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/02-sessions-lasts.sql index 01f8c39f..96944603 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/02-sessions-lasts.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/02-sessions-lasts.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/03-sessions.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/03-sessions.sql index 6664b5b3..7ce7a1ae 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/03-sessions.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/03-sessions.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/04-sessions-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/04-sessions-metadata.sql index d1648288..c627a327 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/04-sessions-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/04-sessions-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/05-sessions-prep-manifest.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/05-sessions-prep-manifest.sql index b25093a5..a35bba56 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/05-sessions-prep-manifest.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/05-sessions-prep-manifest.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/06-commit-sessions.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/06-commit-sessions.sql index b1fe4c82..8a842292 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/06-commit-sessions.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/01-main/06-commit-sessions.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/98-truncate-page-views-staged.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/98-truncate-page-views-staged.sql index 58c35a48..ec082004 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/98-truncate-page-views-staged.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/98-truncate-page-views-staged.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/99-sessions-cleanup.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/99-sessions-cleanup.sql index 80a7e7b3..e57d14fd 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/99-sessions-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/99-complete/99-sessions-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/XX-destroy/XX-destroy-sessions.sql b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/XX-destroy/XX-destroy-sessions.sql index 8f3c7d83..ed7ad726 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/03-sessions/XX-destroy/XX-destroy-sessions.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/03-sessions/XX-destroy/XX-destroy-sessions.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql index 491dab12..717b7681 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/01-userids-this-run.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/01-userids-this-run.sql index 1d5257e7..5beadc58 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/01-userids-this-run.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/01-userids-this-run.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/02-users-limits.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/02-users-limits.sql index b1c93ac5..f6a55de2 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/02-users-limits.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/02-users-limits.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql index 0c4d1272..aa073696 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/03-users-sessions-this-run.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/04-users-aggs.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/04-users-aggs.sql index 1bcc35f6..123f07e3 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/04-users-aggs.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/04-users-aggs.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/05-users-lasts.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/05-users-lasts.sql index 2c627571..4e7cb951 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/05-users-lasts.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/05-users-lasts.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/06-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/06-users.sql index 991fa06a..c06eaabb 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/06-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/06-users.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/07-users-metadata.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/07-users-metadata.sql index e7974bd6..024f99e9 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/07-users-metadata.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/07-users-metadata.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/08-commit-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/08-commit-users.sql index abc875fc..b83c5aac 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/08-commit-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/08-commit-users.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/98-manifest-and-truncate.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/98-manifest-and-truncate.sql index aefb1229..bd15c96e 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/98-manifest-and-truncate.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/98-manifest-and-truncate.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/99-users-cleanup.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/99-users-cleanup.sql index 3ba7ce03..db1f1dae 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/99-users-cleanup.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/99-complete/99-users-cleanup.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/XX-destroy/XX-destroy-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/XX-destroy/XX-destroy-users.sql index 1a5202eb..f074f27c 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/XX-destroy/XX-destroy-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/XX-destroy/XX-destroy-users.sql @@ -1,5 +1,5 @@ /* - Copyright 2021 Snowplow Analytics Ltd. All rights reserved. + Copyright 2021-2022 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From 01b138f0b76674d33422d3b0647e3cc9565c03ba Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Thu, 17 Feb 2022 21:58:56 +0000 Subject: [PATCH 5/8] Snowflake web: Remove start_date variable from users module (Close #123) --- .../playbooks/standard/04-users/01-users-main.yml.tmpl | 1 - .../sql-runner/sql/standard/04-users/01-main/00-setup-users.sql | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl index c9791957..127f7428 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl @@ -11,7 +11,6 @@ :scratch_schema: scratch :output_schema: derived :entropy: "" - :start_date: 2020-01-01 :skip_derived: :steps: - :name: 01-stored-procedures diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql index 717b7681..0468eb18 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql @@ -88,7 +88,7 @@ CREATE TABLE IF NOT EXISTS {{.output_schema}}.users_manifest{{.entropy}} AS ( SELECT 'seed'::VARCHAR(36) AS domain_userid, - '{{.start_date}}'::TIMESTAMP_NTZ AS start_tstamp + '1970-01-01'::TIMESTAMP_NTZ AS start_tstamp ); -- Setup Users table From 19ec98def22b71832adde9aaeae97843ff0f57ba Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Thu, 17 Feb 2022 22:01:17 +0000 Subject: [PATCH 6/8] Snowflake web: Fix varchar length for pseudonymized fields (Close #122) --- .../sql-runner/sql/standard/01-base/01-main/00-setup-base.sql | 2 +- .../sql-runner/sql/standard/04-users/01-main/00-setup-users.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql index f1ca99b5..cf624eec 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/01-base/01-main/00-setup-base.sql @@ -97,7 +97,7 @@ AS ( CREATE TABLE IF NOT EXISTS {{.output_schema}}.base_session_id_manifest{{.entropy}} AS ( SELECT - 'seed'::VARCHAR(36) AS session_id, + 'seed'::VARCHAR(128) AS session_id, '{{.start_date}}'::TIMESTAMP_NTZ AS min_tstamp ); diff --git a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql index 0468eb18..cad8e62c 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/04-users/01-main/00-setup-users.sql @@ -87,7 +87,7 @@ INSERT INTO {{.scratch_schema}}.users_metadata_this_run{{.entropy}} ( CREATE TABLE IF NOT EXISTS {{.output_schema}}.users_manifest{{.entropy}} AS ( SELECT - 'seed'::VARCHAR(36) AS domain_userid, + 'seed'::VARCHAR(128) AS domain_userid, '1970-01-01'::TIMESTAMP_NTZ AS start_tstamp ); From d8d5236ff291f2c1b4c0a90e52c4aad25fa233bc Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Thu, 17 Feb 2022 22:03:50 +0000 Subject: [PATCH 7/8] Snowflake web: Update column check stored procedure (Close #125) --- .../00-setup/01-main/01-stored-procedures.sql | 139 ++++++++++-------- 1 file changed, 77 insertions(+), 62 deletions(-) diff --git a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql index c544c499..b1f353d4 100644 --- a/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql +++ b/web/v1/snowflake/sql-runner/sql/standard/00-setup/01-main/01-stored-procedures.sql @@ -86,74 +86,89 @@ CREATE OR REPLACE PROCEDURE {{.output_schema}}.column_check(SOURCE_SCHEMA VARCHA AS $$ - var delim = '~'; - var sourceColumns = list_cols_with_type(SOURCE_SCHEMA,SOURCE_TABLE,delim).split(delim); - var targetColumns = list_cols_with_type(TARGET_SCHEMA,TARGET_TABLE,delim).split(delim); - - if (targetColumns.some(notIncludedIn(sourceColumns)) === true) { - - throw "ERROR: Source table is missing column(s) which exist in target table."; - - } else { - - var columnAdditions = sourceColumns.filter(notIncludedIn(targetColumns)); - - if (sourceColumns.some(notIncludedIn(targetColumns)) === true) { - if ( AUTOMIGRATE !== 'TRUE' ) { - throw "ERROR: Target table is missing column(s),but automigrate is not enabled."; - } else { - // enforce order - for (var i = 0; i < targetColumns.length; i++) { - if (targetColumns[i] !== sourceColumns[i]) { - throw "ERROR: Can only migrate extra columns of the end of source" - } - } - add_columns_to(TARGET_SCHEMA, TARGET_TABLE, columnAdditions.join(',')); - return "ok.Columns added." - } - } else { - return "ok. Columns match." - } + column_check_stmt = ` + WITH target_columns AS ( + SELECT + isc.column_name, + isc.data_type, + isc.ordinal_position, + isc.character_maximum_length + + FROM information_schema.columns AS isc + WHERE table_schema = UPPER(:1) + AND table_name = UPPER(:2) + ) + + , source_columns AS ( + SELECT + isc.column_name, + isc.data_type, + isc.ordinal_position, + isc.character_maximum_length, + isc.numeric_precision, + isc.numeric_scale + + FROM information_schema.columns AS isc + WHERE table_schema = UPPER(:3) + AND table_name = UPPER(:4) + ) + + SELECT + SUM(CASE WHEN sc.column_name IS NULL THEN 1 ELSE 0 END) AS missing_in_source, + SUM(CASE WHEN tc.column_name IS NULL THEN 1 ELSE 0 END) AS missing_in_target, + LISTAGG( + CASE + WHEN tc.column_name IS NOT NULL + THEN NULL + WHEN sc.data_type='TEXT' + THEN CONCAT(sc.column_name, ' VARCHAR(',sc.character_maximum_length, ')') + WHEN sc.data_type='NUMBER' + THEN CONCAT(sc.column_name, ' NUMBER(', sc.numeric_precision, ',',sc.numeric_scale, ')') + ELSE + CONCAT(sc.column_name, ' ', sc.data_type) + END + , ', ') WITHIN GROUP (ORDER BY sc.ordinal_position) AS cols_to_add, + LISTAGG(CASE WHEN tc.column_name IS NOT NULL AND sc.character_maximum_length > tc.character_maximum_length THEN sc.column_name END, ', ') as cols_w_incompatible_char_limits + + FROM target_columns tc + FULL OUTER JOIN source_columns sc + ON tc.column_name = sc.column_name + AND tc.data_type = sc.data_type + AND tc.ordinal_position = sc.ordinal_position`; + + var res = snowflake.createStatement({sqlText: column_check_stmt, + binds: [TARGET_SCHEMA, TARGET_TABLE,SOURCE_SCHEMA, SOURCE_TABLE]} + ).execute(); + res.next(); + + missing_in_source = res.getColumnValue(1); + missing_in_target = res.getColumnValue(2); + cols_to_add = res.getColumnValue(3); + cols_with_varchar_issue = res.getColumnValue(4); + + + if (missing_in_source > 0) { + throw "ERROR: Source table is either missing column(s) which exist in target table or their position is wrong."; } - // == Helpers == - - function list_cols_with_type(sch,tbl,delimiter) { - var stmt = ` - SELECT - LISTAGG( - CASE - WHEN isc.data_type='TEXT' - THEN CONCAT(isc.column_name, ' VARCHAR(',isc.character_maximum_length, ')') - WHEN isc.data_type='NUMBER' - THEN CONCAT(isc.column_name, ' NUMBER(', isc.numeric_precision, ',',isc.numeric_scale, ')') - ELSE - CONCAT(isc.column_name, ' ', isc.data_type) - END, '` + delimiter + `') - WITHIN GROUP (order by isc.ordinal_position) - FROM information_schema.columns AS isc - WHERE table_schema='` + sch + `' - AND table_name='` + tbl + `';`; - - var res = snowflake.createStatement({sqlText: stmt}).execute(); - res.next(); - result = res.getColumnValue(1); - - return result; + if (cols_with_varchar_issue !== '') { + throw "ERROR: field length for source varchar column(s) " + cols_with_varchar_issue + " is longer than the target." } - function notIncludedIn(arr) { - return function(elt) { - return ! arr.includes(elt); - }; - } + if (missing_in_target > 0) { - function add_columns_to(sch, tbl, cols) { - var alter_stmt = `ALTER TABLE ` + sch + `.` + tbl + ` ADD COLUMN ` + cols; - snowflake.createStatement({sqlText: alter_stmt}).execute(); + if ( AUTOMIGRATE !== 'TRUE' ) { + throw "ERROR: Target table is missing column(s),but automigrate is not enabled."; - return "ok. Columns added."; - } + } else { + var alter_stmt = `ALTER TABLE ` + TARGET_SCHEMA + `.` + TARGET_TABLE + ` ADD COLUMN ` + cols_to_add; + snowflake.createStatement({sqlText: alter_stmt}).execute(); + return "ok. Columns added." + } + + } else { + return "ok. Columns match." + } $$ ; From 3b56bc54aac573f41754fe920e2131ab4aa0e17d Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Wed, 23 Feb 2022 12:33:34 +0000 Subject: [PATCH 8/8] Prepare for release --- .test/great_expectations/expectations/web/v1/base.json | 2 +- .../expectations/web/v1/metadata.json | 2 +- .../web/v1/page_view_in_session_values.json | 2 +- .../expectations/web/v1/page_views.json | 2 +- .../expectations/web/v1/sessions.json | 2 +- .../great_expectations/expectations/web/v1/users.json | 2 +- CHANGELOG | 10 ++++++++++ web/v1/snowflake/CHANGELOG | 10 ++++++++++ web/v1/snowflake/README.md | 6 +++--- .../standard/00-setup/00-setup-metadata.yml.tmpl | 2 +- .../standard/00-setup/99-metadata-complete.yml.tmpl | 2 +- .../standard/00-setup/XX-destroy-metadata.yml.tmpl | 2 +- .../playbooks/standard/01-base/01-base-main.yml.tmpl | 2 +- .../standard/01-base/99-base-complete.yml.tmpl | 2 +- .../standard/01-base/XX-destroy-base.yml.tmpl | 2 +- .../standard/02-page-views/01-page-views-main.yml.tmpl | 2 +- .../02-page-views/99-page-views-complete.yml.tmpl | 2 +- .../02-page-views/XX-destroy-page-views.yml.tmpl | 2 +- .../standard/03-sessions/01-sessions-main.yml.tmpl | 2 +- .../standard/03-sessions/99-sessions-complete.yml.tmpl | 2 +- .../standard/03-sessions/XX-destroy-sessions.yml.tmpl | 2 +- .../playbooks/standard/04-users/01-users-main.yml.tmpl | 2 +- .../standard/04-users/99-users-complete.yml.tmpl | 2 +- .../standard/04-users/XX-destroy-users.yml.tmpl | 2 +- 24 files changed, 44 insertions(+), 24 deletions(-) diff --git a/.test/great_expectations/expectations/web/v1/base.json b/.test/great_expectations/expectations/web/v1/base.json index 89b68216..546b5d79 100644 --- a/.test/great_expectations/expectations/web/v1/base.json +++ b/.test/great_expectations/expectations/web/v1/base.json @@ -139,7 +139,7 @@ "versions": { "test_suite_version": "1.1.1", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/.test/great_expectations/expectations/web/v1/metadata.json b/.test/great_expectations/expectations/web/v1/metadata.json index cdc76817..4ee04917 100644 --- a/.test/great_expectations/expectations/web/v1/metadata.json +++ b/.test/great_expectations/expectations/web/v1/metadata.json @@ -105,7 +105,7 @@ "test_suite_version": "1.1.1", "redshift_model_version": "1.2.0", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/.test/great_expectations/expectations/web/v1/page_view_in_session_values.json b/.test/great_expectations/expectations/web/v1/page_view_in_session_values.json index 996cd0d2..640f9cba 100644 --- a/.test/great_expectations/expectations/web/v1/page_view_in_session_values.json +++ b/.test/great_expectations/expectations/web/v1/page_view_in_session_values.json @@ -29,7 +29,7 @@ "test_suite_version": "1.1.1", "redshift_model_version": "1.2.0", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/.test/great_expectations/expectations/web/v1/page_views.json b/.test/great_expectations/expectations/web/v1/page_views.json index b5f194ed..a2580d77 100644 --- a/.test/great_expectations/expectations/web/v1/page_views.json +++ b/.test/great_expectations/expectations/web/v1/page_views.json @@ -227,7 +227,7 @@ "test_suite_version": "1.1.1", "redshift_model_version": "1.2.0", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/.test/great_expectations/expectations/web/v1/sessions.json b/.test/great_expectations/expectations/web/v1/sessions.json index b0234180..c2c01d00 100644 --- a/.test/great_expectations/expectations/web/v1/sessions.json +++ b/.test/great_expectations/expectations/web/v1/sessions.json @@ -183,7 +183,7 @@ "test_suite_version": "1.1.1", "redshift_model_version": "1.2.0", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/.test/great_expectations/expectations/web/v1/users.json b/.test/great_expectations/expectations/web/v1/users.json index b4d2fe6e..d949d4df 100644 --- a/.test/great_expectations/expectations/web/v1/users.json +++ b/.test/great_expectations/expectations/web/v1/users.json @@ -119,7 +119,7 @@ "test_suite_version": "1.1.1", "redshift_model_version": "1.2.0", "bigquery_model_version": "1.0.3", - "snowflake_model_version": "1.0.0" + "snowflake_model_version": "1.0.1" }, "great_expectations.__version__": "0.12.0" } diff --git a/CHANGELOG b/CHANGELOG index 3a453858..d09facad 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,13 @@ +Snowflake Web Version 1.0.1 (2022-02-24) +--------------------------------------- +Snowflake Web: Update column check stored procedure (Close #125) +Snowflake Web: Fix varchar length for pseudonymized fields (Close #122) +Snowflake Web: Remove start_date variable from users module (Close #123) +Snowflake Web: Update copyright notices (Close #124) +Snowflake Web: Fix logic in users_sessions_this_run to account for sparse data (Close #120) +Snowflake Web: Fix varchar length for yauaa columns (Close #97) +Snowflake Web: Fix se_label column length in events_staged (Close #109) + Snowflake Mobile Version 1.1.0 (2021-06-16) --------------------------------------- Snowflake Mobile: Update update_manifest to throw error message (Close #104) diff --git a/web/v1/snowflake/CHANGELOG b/web/v1/snowflake/CHANGELOG index e0fd479c..14ecf832 100644 --- a/web/v1/snowflake/CHANGELOG +++ b/web/v1/snowflake/CHANGELOG @@ -1,3 +1,13 @@ +Version 1.0.1 (2022-02-24) +-------------------------- +Snowflake web: Update column check stored procedure (Close #125) +Snowflake web: Fix varchar length for pseudonymized fields (Close #122) +Snowflake web: Remove start_date variable from users module (Close #123) +Snowflake web: Update copyright notices (Close #124) +Snowflake web: Fix logic in users_sessions_this_run to account for sparse data (Close #120) +Snowflake web: Fix varchar length for yauaa columns (Close #97) +Snowflake web: Fix se_label column length in events_staged (Close #109) + Version 1.0.0 (2021-02-11) -------------------------- Add Snowflake web model v1 (#31) diff --git a/web/v1/snowflake/README.md b/web/v1/snowflake/README.md index 348c8b1e..f1a7b6a1 100644 --- a/web/v1/snowflake/README.md +++ b/web/v1/snowflake/README.md @@ -214,7 +214,7 @@ Detail on configuring the users module's playbook can be found [in the relevant ## A note on duplicates -This version of the model (1.0.0) excludes duplicated `event_id`s and `page_view_id`s. Ideally in the future it will provide standard options for handling them. +This version of the model (1.0.1) excludes duplicated `event_id`s and `page_view_id`s. Ideally in the future it will provide standard options for handling them. If there is a need to handle duplicates, this can be done by adding a custom module to the base level of aggregation - take good care to manage the possibility of introducing duplicates downstream if doing so. @@ -223,8 +223,8 @@ Normally, one would expect less than 1% duplicates in the dataset. If the requir ## A note on Constraints and Clustering keys -This 1.0.0 version of the Snowflake web model does not use Constraints or Clustering keys in the table definitions, even though it could. +This 1.0.1 version of the Snowflake web model does not use Constraints or Clustering keys in the table definitions, even though it could. Concerning [clustering keys](https://docs.snowflake.com/en/user-guide/tables-clustering-keys.html#strategies-for-selecting-clustering-keys), Snowflake's naturally clusters the tables on insertion order, and there hasn't been evidence so far suggesting a change towards another manual clustering strategy. -Concerning table [constraints](https://docs.snowflake.com/en/sql-reference/constraints-overview.html), it is a fact that Snowflake enforces **only** the `NOT NULL` constraint. Therefore, in this 1.0.0 version we decided to include only this constraint that is actually enforced, for clarity on the model's assumptions. +Concerning table [constraints](https://docs.snowflake.com/en/sql-reference/constraints-overview.html), it is a fact that Snowflake enforces **only** the `NOT NULL` constraint. Therefore, in this 1.0.1 version we decided to include only this constraint that is actually enforced, for clarity on the model's assumptions. diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/00-setup-metadata.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/00-setup-metadata.yml.tmpl index 218446c5..1dd66f90 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/00-setup-metadata.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/00-setup-metadata.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/99-metadata-complete.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/99-metadata-complete.yml.tmpl index b18c27f8..5c75dab5 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/99-metadata-complete.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/99-metadata-complete.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/XX-destroy-metadata.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/XX-destroy-metadata.yml.tmpl index 5b852945..ad6aa179 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/XX-destroy-metadata.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/00-setup/XX-destroy-metadata.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/01-base-main.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/01-base-main.yml.tmpl index 543fb738..73bdca78 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/01-base-main.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/01-base-main.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :input_schema: atomic :scratch_schema: scratch :output_schema: derived diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/99-base-complete.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/99-base-complete.yml.tmpl index 919ce61b..d56eacf5 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/99-base-complete.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/99-base-complete.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/XX-destroy-base.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/XX-destroy-base.yml.tmpl index 173276f8..ddf0bee0 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/01-base/XX-destroy-base.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/01-base/XX-destroy-base.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/01-page-views-main.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/01-page-views-main.yml.tmpl index ee869bd2..3ee681f3 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/01-page-views-main.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/01-page-views-main.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/99-page-views-complete.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/99-page-views-complete.yml.tmpl index 0304b057..00ce7317 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/99-page-views-complete.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/99-page-views-complete.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/XX-destroy-page-views.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/XX-destroy-page-views.yml.tmpl index 5b5a7738..297938fc 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/XX-destroy-page-views.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/02-page-views/XX-destroy-page-views.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/01-sessions-main.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/01-sessions-main.yml.tmpl index b21b09b7..18a9fbb5 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/01-sessions-main.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/01-sessions-main.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/99-sessions-complete.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/99-sessions-complete.yml.tmpl index 27693e8d..0ea8c873 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/99-sessions-complete.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/99-sessions-complete.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/XX-destroy-sessions.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/XX-destroy-sessions.yml.tmpl index 5901478a..1d86746e 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/XX-destroy-sessions.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/03-sessions/XX-destroy-sessions.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl index 127f7428..cb41144f 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/01-users-main.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/99-users-complete.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/99-users-complete.yml.tmpl index 61fd19d3..f4036058 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/99-users-complete.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/99-users-complete.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: "" diff --git a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/XX-destroy-users.yml.tmpl b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/XX-destroy-users.yml.tmpl index ad0b031a..14aa0759 100644 --- a/web/v1/snowflake/sql-runner/playbooks/standard/04-users/XX-destroy-users.yml.tmpl +++ b/web/v1/snowflake/sql-runner/playbooks/standard/04-users/XX-destroy-users.yml.tmpl @@ -7,7 +7,7 @@ :username: :password: :variables: - :model_version: snowflake/web/1.0.0 + :model_version: snowflake/web/1.0.1 :scratch_schema: scratch :output_schema: derived :entropy: ""