Skip to content

Commit f1173d6

Browse files
authored
Revert PRO as default warehouse_type in databricks_sql_endpoint (#1741)
Rely on the platform to specify the default `warehouse_type`
1 parent 352a578 commit f1173d6

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

docs/resources/sql_endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following arguments are supported:
3939
* `enable_serverless_compute` - Whether this SQL endpoint is a Serverless endpoint. To use a Serverless SQL endpoint, you must enable Serverless SQL endpoints for the workspace.
4040
* `channel` block, consisting of following fields:
4141
* `name` - Name of the Databricks SQL release channel. Possible values are: `CHANNEL_NAME_PREVIEW` and `CHANNEL_NAME_CURRENT`. Default is `CHANNEL_NAME_CURRENT`.
42-
* `warehouse_type` - [SQL Warehouse Type](https://docs.databricks.com/sql/admin/sql-endpoints.html#switch-the-sql-warehouse-type-pro-classic-or-serverless): `PRO` (default) or `CLASSIC`. If Serverless SQL is enabled, you can only specify `PRO`.
42+
* `warehouse_type` - [SQL Warehouse Type](https://docs.databricks.com/sql/admin/sql-endpoints.html#switch-the-sql-warehouse-type-pro-classic-or-serverless): `PRO` or `CLASSIC` (default). If Serverless SQL is enabled, you can only specify `PRO`.
4343

4444
## Attribute Reference
4545

sql/resource_sql_endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type SQLEndpoint struct {
3737
Tags *Tags `json:"tags,omitempty" tf:"suppress_diff"`
3838
SpotInstancePolicy string `json:"spot_instance_policy,omitempty" tf:"default:COST_OPTIMIZED"`
3939
Channel *ReleaseChannel `json:"channel,omitempty" tf:"suppress_diff"`
40-
WarehouseType string `json:"warehouse_type,omitempty" tf:"default:PRO"`
40+
WarehouseType string `json:"warehouse_type,omitempty" tf:"suppress_diff"`
4141

4242
// The data source ID is not part of the endpoint API response.
4343
// We manually resolve it by retrieving the list of data sources

sql/resource_sql_endpoint_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func TestResourceSQLEndpointCreate(t *testing.T) {
8181
NumClusters: 1,
8282
EnablePhoton: true,
8383
SpotInstancePolicy: "COST_OPTIMIZED",
84-
WarehouseType: "PRO",
8584
},
8685
Response: SQLEndpoint{
8786
ID: "abc",
@@ -129,7 +128,6 @@ func TestResourceSQLEndpointCreateNoAutoTermination(t *testing.T) {
129128
NumClusters: 1,
130129
EnablePhoton: true,
131130
SpotInstancePolicy: "COST_OPTIMIZED",
132-
WarehouseType: "PRO",
133131
},
134132
Response: SQLEndpoint{
135133
ID: "abc",
@@ -230,7 +228,6 @@ func TestResourceSQLEndpointUpdate(t *testing.T) {
230228
NumClusters: 1,
231229
EnablePhoton: true,
232230
SpotInstancePolicy: "COST_OPTIMIZED",
233-
WarehouseType: "PRO",
234231
},
235232
},
236233
{

0 commit comments

Comments
 (0)