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
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
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