From d1c3a94eb82d3566a73ae941747feb6ae7842aa2 Mon Sep 17 00:00:00 2001 From: Laura Li Foa Wing Date: Fri, 16 Aug 2024 16:49:14 -0700 Subject: [PATCH] Modify parse_json macro to use try --- macros/database_specific_helpers/parse_json.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/database_specific_helpers/parse_json.sql b/macros/database_specific_helpers/parse_json.sql index 39ea5d8f..5dde5f9c 100644 --- a/macros/database_specific_helpers/parse_json.sql +++ b/macros/database_specific_helpers/parse_json.sql @@ -7,7 +7,7 @@ {%- endmacro %} {% macro snowflake__parse_json(field) -%} - parse_json({{ field }}) + try_parse_json({{ field }}) {%- endmacro %} {% macro bigquery__parse_json(field) -%}