Skip to content

Commit

Permalink
Fix reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed Aug 27, 2024
1 parent f316ff8 commit c28d4e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/resources/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ SQL

### Required

- `database` (String) The database in which to create the view.
- `database` (String) The database in which to create the view. Due to technical limitations (read more [here](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/identifiers_rework_design_decisions.md#known-limitations-and-identifier-recommendations)), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
- `name` (String) Specifies the identifier for the view; must be unique for the schema in which the view is created. Due to technical limitations (read more [here](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/identifiers_rework_design_decisions.md#known-limitations-and-identifier-recommendations)), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
- `schema` (String) The schema in which to create the view.
- `schema` (String) The schema in which to create the view. Due to technical limitations (read more [here](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/identifiers_rework_design_decisions.md#known-limitations-and-identifier-recommendations)), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
- `statement` (String) Specifies the query used to create the view.

### Optional
Expand Down
6 changes: 3 additions & 3 deletions pkg/resources/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ var viewSchema = map[string]*schema.Schema{
"database": {
Type: schema.TypeString,
Required: true,
Description: "The database in which to create the view.",
Description: blocklistedCharactersFieldDescription("The database in which to create the view."),
ForceNew: true,
DiffSuppressFunc: suppressIdentifierQuoting,
},
"schema": {
Type: schema.TypeString,
Required: true,
Description: "The schema in which to create the view.",
Description: blocklistedCharactersFieldDescription("The schema in which to create the view."),
ForceNew: true,
DiffSuppressFunc: suppressIdentifierQuoting,
},
Expand Down Expand Up @@ -523,7 +523,7 @@ func ReadView(withExternalChangesMarking bool) schema.ReadContextFunc {
func handlePolicyReferences(ctx context.Context, client *sdk.Client, id sdk.SchemaObjectIdentifier, d *schema.ResourceData) error {
policyRefs, err := client.PolicyReferences.GetForEntity(ctx, sdk.NewGetForEntityPolicyReferenceRequest(id, sdk.PolicyEntityDomainView))
if err != nil {
return fmt.Errorf("getting policy references for view: %v", err)
return fmt.Errorf("getting policy references for view: %w", err)
}
var aggregationPolicies []map[string]any
var rowAccessPolicies []map[string]any
Expand Down

0 comments on commit c28d4e9

Please sign in to comment.