From 64f8794c9f8bd24de2f46e6b0a721403786430a0 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Mon, 20 May 2024 17:09:00 +0100 Subject: [PATCH] Fix SQL --- sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql b/sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql index fd7857b6e10..be037330c2c 100644 --- a/sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql +++ b/sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql @@ -4,10 +4,10 @@ # https://stackoverflow.com/a/65054751/7391782 # Warning: fails if there are colons in the keys/values, but these are not expected -CREATE TEMPORARY FUNCTION ExtractKeyValuePairs(input STRING) RETURNS ARRAY < STRUCT < +CREATE TEMPORARY FUNCTION ExtractKeyValuePairs(input STRING) RETURNS ARRAY > AS ( +>> AS ( ( SELECT ARRAY(