Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed Sep 16, 2024
1 parent c22c035 commit 6bfcef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/diff_suppressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6bfcef3

Please sign in to comment.