Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/dynamic table alter on column syntax #790

Merged
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230914-110800.yaml
kaarthik108 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fixing comment on syntax for dynamic tables
time: 2023-09-14T11:08:00.250684+12:00
custom:
Author: kaarthik108
Issue: '769'
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20231002-144648.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix the alter syntax on column for dynamic table
time: 2023-10-02T14:46:48.980242+13:00
custom:
Author: kaarthik108
Issue: "769"
2 changes: 1 addition & 1 deletion dbt/include/snowflake/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
{% macro snowflake__alter_column_comment(relation, column_dict) -%}
{% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute="name") | list %}
{% if relation.is_dynamic_table -%}
{% set relation_type = "dynamic table" %}
{% set relation_type = "table" %}
{% else -%}
{% set relation_type = relation.type %}
{% endif %}
Expand Down