Skip to content

Commit 5528e54

Browse files
committed
fix run_query_as call site
1 parent 8bad096 commit 5528e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbt/include/databricks/macros/adapters/persist_docs.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% set comment = column['description'] %}
66
{% set escaped_comment = comment | replace('\'', '\\\'') %}
77
{% set column_path = relation.render() ~ '.' ~ api.Column.get_name(column) %}
8-
{{ run_query_as(comment_on_column_sql(column_path, escaped_comment)) }}
8+
{{ run_query_as(comment_on_column_sql(column_path, escaped_comment), 'alter_column_comment', fetch_result=False) }}
99
{% endfor %}
1010
{% else %}
1111
{{ log('WARNING - requested to update column comments, but file format ' ~ file_format ~ ' does not support that.') }}
@@ -18,7 +18,7 @@ COMMENT ON COLUMN {{ column_path }} IS '{{ escaped_comment }}'
1818

1919
{% macro databricks__persist_docs(relation, model, for_relation, for_columns) -%}
2020
{%- if for_relation and config.persist_relation_docs() and model.description %}
21-
{{ run_query_as(alter_relation_comment_sql(relation, model)) }}
21+
{{ run_query_as(alter_relation_comment_sql(relation, model), 'alter_relation_comment', fetch_result=False) }}
2222
{% endif %}
2323
{% if for_columns and config.persist_column_docs() and model.columns %}
2424
{%- set existing_columns = adapter.get_columns_in_relation(relation) -%}

0 commit comments

Comments
 (0)