Skip to content

Commit 33d69c1

Browse files
committed
[Fix] Move Spark Version selector defaults to Terraform
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
1 parent 1075e39 commit 33d69c1

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)