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("'", "''") }}'