Skip to content

Conversation

@alexott
Copy link
Contributor

@alexott alexott commented Nov 14, 2025

What changes are proposed in this pull request?

This is a fix for databricks/terraform-provider-databricks#5218. The issue is cased by the fact that Scala selector had default value of 2.12 (for Terraform only), and as result was filtering out 17.x versions that are released only with Scala 2.13.

Fix is to relax the default value, but handle the case when there could be 2.12 and 2.13 versions for the same DBR version (16.x only).

Removed all Terraform customizations from the Go SDK struct, will be handled separately in Terraform itself

Also bumped staticcheck to 0.6.1 to support compilation with Go 1.25

How is this tested?

Added unit test, tested manually

This is a fix for databricks/terraform-provider-databricks#5218.
The issue is cased by the fact that `Scala` selector had default value of `2.12` (for
Terraform only), and as result was filtering out 17.x versions that are released only with
Scala 2.13.

Fix is to relax the default value, but handle the case when there could be 2.12 and 2.13
versions for the same DBR version (16.x only).

Also bumped staticcheck to 0.6.1 to support compilation with Go 1.25

Signed-off-by: Alex Ott <[email protected]>
@alexott alexott deployed to test-trigger-is November 14, 2025 17:46 — with GitHub Actions Active
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1331
  • Commit SHA: 98f4d71b3716aa45eeb777b70d8a8569f5ea5b82

Checks will be approved automatically on success.

alexott added a commit to databricks/terraform-provider-databricks that referenced this pull request Nov 14, 2025
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
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.

1 participant