From 19ec98def22b71832adde9aaeae97843ff0f57ba Mon Sep 17 00:00:00 2001 From: Agnes Kiss Date: Thu, 17 Feb 2022 22:01:17 +0000 Subject: [PATCH] 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 f1ca99b..cf624ee 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 0468eb1..cad8e62 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 );