Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following arguments are available:
* `catalog` - (Optional, String) Name of the catalog where this query will be executed.
* `schema` - (Optional, String) Name of the schema where this query will be executed.
* `description` - (Optional, String) General description that conveys additional information about this query such as usage notes.
* `run_as_mode` - (Optional, String) Sets the "Run as" role for the object.
* `run_as_mode` - (Optional, String) Sets the "Run as" role for the object. Should be one of `OWNER`, `VIEWER`.
* `tags` - (Optional, List of strings) Tags that will be added to the query.
* `parameter` - (Optional, Block) Query parameter definition. Consists of following attributes (one of `*_value` is required):
* `name` - (Required, String) Literal parameter marker that appears between double curly braces in the query text.
Expand Down
4 changes: 1 addition & 3 deletions sql/resource_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ func (QueryStruct) CustomizeSchema(m *common.CustomizableSchema) *common.Customi
m.SchemaPath("warehouse_id").SetRequired().SetValidateFunc(validation.StringIsNotWhiteSpace)
m.SchemaPath("parent_path").SetCustomSuppressDiff(common.WorkspaceOrEmptyPathPrefixDiffSuppress).SetForceNew()
m.SchemaPath("owner_user_name").SetSuppressDiff()
m.SchemaPath("run_as_mode").SetSuppressDiff()
//m.SchemaPath("").SetSuppressDiff()
//m.SchemaPath("").SetSuppressDiff()
m.SchemaPath("run_as_mode").SetSuppressDiff().SetValidateFunc(validation.StringInSlice([]string{"VIEWER", "OWNER"}, false))
m.SchemaPath("id").SetReadOnly()
m.SchemaPath("create_time").SetReadOnly()
m.SchemaPath("lifecycle_state").SetReadOnly()
Expand Down