Skip to content

Commit b2e48b0

Browse files
authored
suppress diff (#2799)
1 parent 31da6b5 commit b2e48b0

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

docs/resources/sql_query.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,29 @@ resource "databricks_permissions" "q1" {
8888
}
8989
```
9090

91+
## Argument Reference
92+
93+
The following arguments are supported:
94+
95+
* `data_source_id` - Data source ID of a [SQL warehouse](sql_endpoint.md)
96+
* `query` - The text of the query to be run.
97+
* `name` - The title of this query that appears in list views, widget headings, and on the query page.
98+
* `parent` - The identifier of the workspace folder containing the object.
99+
* `description` - General description that conveys additional information about this query such as usage notes.
100+
* `run_as_role` - Run as role. Possible values are `viewer`, `owner`.
101+
102+
### `parameter` configuration block
103+
104+
For parameter definition
105+
106+
* `title` - The text displayed in a parameter picking widget.
107+
* `name` - The literal parameter marker that appears between double curly braces in the query text.
108+
Parameters can have several different types. Type is specified using one of the following configuration blocks: `text`, `number`, `enum`, `query`, `date`, `datetime`, `datetimesec`, `date_range`, `datetime_range`, `datetimesec_range`.
109+
110+
For `text`, `number`, `date`, `datetime`, `datetimesec` block
111+
112+
* `value` - The default value for this parameter.
113+
91114
## Import
92115

93116
You can import a `databricks_sql_query` resource with ID like the following:

sql/resource_sql_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type QueryEntity struct {
2424
Schedule *QuerySchedule `json:"schedule,omitempty"`
2525
Tags []string `json:"tags,omitempty"`
2626
Parameter []QueryParameter `json:"parameter,omitempty"`
27-
RunAsRole string `json:"run_as_role,omitempty"`
27+
RunAsRole string `json:"run_as_role,omitempty" tf:"suppress_diff"`
2828
Parent string `json:"parent,omitempty" tf:"suppress_diff,force_new"`
2929
CreatedAt string `json:"created_at,omitempty" tf:"computed"`
3030
UpdatedAt string `json:"updated_at,omitempty" tf:"computed"`

0 commit comments

Comments
 (0)