Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warehouse_type parameter to sql_endpoint to support DBSQL PRO SKU #1728

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Nov 4, 2022

No description provided.

@alexott alexott requested a review from a team November 4, 2022 10:03
@nfx nfx requested a review from binfeng-db November 4, 2022 15:31
Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending response from @yuchenhuo

@alexott alexott changed the title Add new parameters to sql_endpoint: warehouse type & disable UC Add warehouse_type parameter to sql_endpoint to support PRO SKU Nov 4, 2022
@alexott alexott changed the title Add warehouse_type parameter to sql_endpoint to support PRO SKU Add warehouse_type parameter to sql_endpoint to support DBSQL PRO SKU Nov 4, 2022
@alexott
Copy link
Contributor Author

alexott commented Nov 4, 2022

@nfx I reworked the change according to decision by dev team

@codecov-commenter
Copy link

Codecov Report

Merging #1728 (3ce49e2) into master (cfeae64) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1728   +/-   ##
=======================================
  Coverage   90.00%   90.00%           
=======================================
  Files         141      141           
  Lines       11096    11098    +2     
=======================================
+ Hits         9987     9989    +2     
  Misses        707      707           
  Partials      402      402           
Impacted Files Coverage Δ
sql/resource_sql_endpoint.go 97.50% <100.00%> (+0.06%) ⬆️

@nfx nfx merged commit 5b0e526 into master Nov 4, 2022
@nfx nfx deleted the sql-warehouse-new-fields branch November 4, 2022 16:19
Copy link

@carlrabelerDB carlrabelerDB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also need to add disable_uc

@@ -39,6 +39,7 @@ The following arguments are supported:
* `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.
* `channel` block, consisting of following fields:
* `name` - Name of the Databricks SQL release channel. Possible values are: `CHANNEL_NAME_PREVIEW` and `CHANNEL_NAME_CURRENT`. Default is `CHANNEL_NAME_CURRENT`.
* `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`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If serverless SQL is enabled, you can only specify PRO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't know if serverless is enabled or not from the terraform execution, especially for non-admin

@alexott
Copy link
Contributor Author

alexott commented Nov 4, 2022

@carlrabelerDB it was discussed and decided not to do

@nfx nfx mentioned this pull request Nov 7, 2022
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants