-
Notifications
You must be signed in to change notification settings - Fork 393
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
Deprecate schedule
block in databricks_sql_query
resource
#2078
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2078 +/- ##
==========================================
- Coverage 89.78% 89.72% -0.07%
==========================================
Files 136 136
Lines 11077 11085 +8
==========================================
Hits 9946 9946
- Misses 732 736 +4
- Partials 399 403 +4
|
Is there any plan to deprecate also the schedule logic of SQL Dashboards and SQL Alerts? |
That's correct, API operations on Redash schedules on all of {query,dashboard,alert} are deprecated. New schedules can be created via |
@@ -12,6 +12,7 @@ type Query struct { | |||
Name string `json:"name"` | |||
Description string `json:"description"` | |||
Query string `json:"query"` | |||
// Deprecated: Use databricks_job resource to schedule a Query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't have any effect, please use SchemaPath
to set Deprecated
flag to true in the relevant StructToSchema
blocks
terraform-provider-databricks/pools/resource_instance_pool.go
Lines 176 to 182 in bd05be2
if v, err := common.SchemaPath(s, "aws_attributes", "availability"); err == nil { | |
v.Default = clusters.AwsAvailabilitySpot | |
v.ValidateFunc = validation.StringInSlice([]string{ | |
clusters.AwsAvailabilityOnDemand, | |
clusters.AwsAvailabilitySpot, | |
}, false) | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I had https://github.com/golang/go/wiki/Deprecated in mind when adding // Deprecated:
(other links in golang/go#10909). Updated SchemaPath
schedule
block in databricks_sql_query
resource
* Added databricks_model_serving resource (#2054). * Added Unity Catalog on GCP support (#2000). * Deprecate schedule block in databricks_sql_query resource (#2078). * Fixed InitScripts Type to work with GCS and ABFS in databricks_cluster resource (#2067). * Added more testing for databricks_tables data source (#2075). * Added more testing for databricks_schemas data source (#2074). * Migrate databricks_node_type data source to Go SDK (#2070). * Migrate databricks_schemas data to Go SDK (#2065). * Migrate databricks_tables data source to SDK (#2068). * Migrate databricks_views data source to Go SDK (#2073). * Migrated databricks_git_credential to Go SDK (#2069). * Migrated databricks_shares data source to Go SDK (#2072). Updated dependency versions: * Bump github.com/databricks/databricks-sdk-go from v0.3.3 to v0.4.0 (#2086). * Bump golang.org/x/mod from 0.8.0 to 0.9.0 (#2076).
* Added databricks_model_serving resource (#2054). * Added Unity Catalog on GCP support (#2000). * Deprecate schedule block in databricks_sql_query resource (#2078). * Fixed InitScripts Type to work with GCS and ABFS in databricks_cluster resource (#2067). * Added more testing for databricks_tables data source (#2075). * Added more testing for databricks_schemas data source (#2074). * Migrate databricks_node_type data source to Go SDK (#2070). * Migrate databricks_schemas data to Go SDK (#2065). * Migrate databricks_tables data source to SDK (#2068). * Migrate databricks_views data source to Go SDK (#2073). * Migrated databricks_git_credential to Go SDK (#2069). * Migrated databricks_shares data source to Go SDK (#2072). Updated dependency versions: * Bump github.com/databricks/databricks-sdk-go from v0.3.3 to v0.4.0 (#2086). * Bump golang.org/x/mod from 0.8.0 to 0.9.0 (#2076).
The schedule logic will be removed in https://databricks.atlassian.net/browse/DECO-532. In this PR, I only mark the schedule stanza on the databricks_sql_query resource as deprecated.
This PR goes with the Redash API docs update in PR #272294
After the Docs update (expected by March 10-15), we'll ramp up the DFF in https://github.com/databricks/universe/pull/272189 to respond with http status 410 to any REST API request related to Redash schedules, expected around March 15.
Close #1963