Skip to content

Commit b0a2a1c

Browse files
authored
[Fix] Move Spark Version selector defaults to Terraform (#5219)
## Changes <!-- Summary of your changes that are easy to understand --> Move defaults for `databricks_spark_version` data source from Go SDK to the Terraform. First part of #5218 work - after new Go SDK is merged, we'll need to change Scala default to `2.1`. Related to databricks/databricks-sdk-go#1331 ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [ ] relevant change in `docs/` folder - [x] covered with integration tests in `internal/acceptance` - [x] using Go SDK - [x] using TF Plugin Framework - [x] has entry in `NEXT_CHANGELOG.md` file
1 parent fe7c2e4 commit b0a2a1c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
### Bug Fixes
1313

1414
* Fix spurious plan diffs in `databricks_model_serving` and `databricks_model_serving_provisioned_throughput` resources due to tag reordering ([#5120](https://github.com/databricks/terraform-provider-databricks/pull/5120))
15+
* Move Spark Version selector defaults to Terraform ([#5219](https://github.com/databricks/terraform-provider-databricks/pull/5219)).
1516

1617
### Documentation
1718

clusters/data_spark_version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ func DataSourceSparkVersion() common.Resource {
2727
}, func(s map[string]*schema.Schema) map[string]*schema.Schema {
2828
common.CustomizeSchemaPath(s, "photon").SetDeprecated("Specify runtime_engine=\"PHOTON\" in the cluster configuration")
2929
common.CustomizeSchemaPath(s, "graviton").SetDeprecated("Not required anymore - it's automatically enabled on the Graviton-based node types")
30+
common.CustomizeSchemaPath(s, "scala").SetDefault("2.12")
31+
common.CustomizeSchemaPath(s, "latest").SetDefault(true)
32+
3033
common.NamespaceCustomizeSchemaMap(s)
3134
return s
3235
})

0 commit comments

Comments
 (0)