You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ISSUE] select_spark_version(latest=True) doesn't return the latest DBR overall because it implicitly filters to Scala 2.12 #1487
Description
A call to WorkspaceClient().clusters.select_spark_version(latest=True) does not return the latest DBR overall. Instead, it appears to apply an implicit default scala="2.12" filter first and then return the latest runtime within that filtered set. This is surprising because latest=True reads as if it should return the latest runtime available in the workspace.
Reproduction
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
print(w.clusters.select_spark_version(latest=True))
print(w.clusters.select_spark_version(latest=True, scala="2.13"))
16.4.x-scala2.12
18.2.x-scala2.13
Expected behavior
select_spark_version(latest=True) should return the latest DBR available in the workspace by default, e.g. 18.2.x-scala2.13 inb the example above
Is it a regression?
INo
Debug Logs
See the real results above
Other Information
The results are from Databricks Azure running on Serverless
Hi, I'd like to investigate this issue and potentially contribute a fix.
I understand that "select_spark_version(latest=True)" may implicitly restrict results to Scala 2.12, even when newer runtimes using another Scala version are available.
Before I start, could you clarify the intended semantics of "latest=True" and whether the linked development item #1542 already addresses this behavior? If the issue is still unresolved and external contributions are welcome, I can investigate the implementation and propose regression tests covering multiple Scala versions and the default behavior.
Activity
Jothirmai commentedon Oct 16, 2026
Hi, I'd like to investigate this issue and potentially contribute a fix.
I understand that "select_spark_version(latest=True)" may implicitly restrict results to Scala 2.12, even when newer runtimes using another Scala version are available.
Before I start, could you clarify the intended semantics of "latest=True" and whether the linked development item #1542 already addresses this behavior? If the issue is still unresolved and external contributions are welcome, I can investigate the implementation and propose regression tests covering multiple Scala versions and the default behavior.
Thank you!