From 7e7581303996dab783aa3c3fb7777f7b956685df Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Fri, 15 Sep 2023 20:39:48 +0200 Subject: [PATCH] Update dbt/include/trino/macros/adapters.sql Co-authored-by: Damian Owsianny <113946744+damian3031@users.noreply.github.com> --- dbt/include/trino/macros/adapters.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/trino/macros/adapters.sql b/dbt/include/trino/macros/adapters.sql index 51743880..2228934e 100644 --- a/dbt/include/trino/macros/adapters.sql +++ b/dbt/include/trino/macros/adapters.sql @@ -90,7 +90,7 @@ {% macro comment(comment) %} {%- set persist_docs = model['config'].get('persist_docs') -%} - {%- if persist_docs is not none -%} + {%- if persist_docs -%} {%- set persist_relation = persist_docs.get('relation') -%} {%- if persist_relation and comment is not none and comment|length > 0 -%} comment '{{ comment | replace("'", "''") }}'