diff --git a/pkg/resources/diff_suppressions.go b/pkg/resources/diff_suppressions.go index aace546ff5..d380ad9a38 100644 --- a/pkg/resources/diff_suppressions.go +++ b/pkg/resources/diff_suppressions.go @@ -222,7 +222,7 @@ func suppressIdentifierQuoting(_, oldValue, newValue string, _ *schema.ResourceD return slices.Equal(oldId, newId) } -func ignoreEmpty(k, oldValue, newValue string, _ *schema.ResourceData) bool { +func ignoreEmptyList(k, oldValue, newValue string, _ *schema.ResourceData) bool { if strings.HasSuffix(k, ".#") && newValue == "0" { return true } diff --git a/pkg/resources/view.go b/pkg/resources/view.go index da319cfbf9..9c6f327fb4 100644 --- a/pkg/resources/view.go +++ b/pkg/resources/view.go @@ -195,7 +195,7 @@ var viewSchema = map[string]*schema.Schema{ }, }, Description: "If you want to change the name of a column or add a comment to a column in the new view, include a column list that specifies the column names and (if needed) comments about the columns. You do not need to specify the data types of the columns. If this field is not specified, columns are inferred from the `statement` field by Snowflake.", - DiffSuppressFunc: ignoreEmpty, + DiffSuppressFunc: ignoreEmptyList, }, "comment": { Type: schema.TypeString,