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(