From a9e8226349787621f9f301b10cf955f75aba94e0 Mon Sep 17 00:00:00 2001 From: Matias Sanchez Moises Date: Tue, 11 Aug 2026 12:15:59 -0700 Subject: [PATCH 1/2] Fix README Quickstart to reference ClusterDetails instead of ClusterInfo ClusterInfo was renamed to ClusterDetails in the compute service package, so the Quickstart example no longer compiles. Update all remaining README references to use the current class name. Closes #501 Signed-off-by: Matias Sanchez Moises --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 328d2a665..e1bcfbf2f 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,13 @@ Using the SDK is as simple as instantiating the `WorkspaceClient` class: import com.databricks.sdk.WorkspaceClient; import com.databricks.sdk.AccountClient; import com.databricks.sdk.core.DatabricksConfig; -import com.databricks.sdk.service.compute.ClusterInfo; +import com.databricks.sdk.service.compute.ClusterDetails; import com.databricks.sdk.service.compute.ListClustersRequest; public class App { public static void main(String[] args) { WorkspaceClient workspace = new WorkspaceClient(); - for (ClusterInfo c : workspace.clusters().list(new ListClustersRequest())) { + for (ClusterDetails c : workspace.clusters().list(new ListClustersRequest())) { System.out.println(c.getClusterName()); } } @@ -58,7 +58,7 @@ To access account-level APIs, you can instantiate the `AccountClient` class: import com.databricks.sdk.WorkspaceClient; import com.databricks.sdk.AccountClient; import com.databricks.sdk.core.DatabricksConfig; -import com.databricks.sdk.service.compute.ClusterInfo; +import com.databricks.sdk.service.compute.ClusterDetails; import com.databricks.sdk.service.compute.ListClustersRequest; public class App { @@ -333,7 +333,7 @@ For example, in the Clusters API, once you create a cluster, you receive a clust Another example is the API for running a job or repairing the run: right after the run starts, the run is in the `PENDING` state. The job is only considered to be finished when it is in either the `TERMINATED` or `SKIPPED` state. Also you would likely need the error message if the long-running operation times out failed with an error code. Other times you may want to configure a custom timeout other than the default of 20 minutes. -In the following example, `workspace.clusters().create()` returns `ClusterInfo` only once the cluster is in the `RUNNING` state, otherwise it will timeout in 10 minutes: +In the following example, `workspace.clusters().create()` returns `ClusterDetails` only once the cluster is in the `RUNNING` state, otherwise it will timeout in 10 minutes: ```java CreateCluster request = new CreateCluster() @@ -342,7 +342,7 @@ CreateCluster request = new CreateCluster() .setNodeTypeId("i3.xlarge") .setAutoterminationMinutes(10L) .setNumWorkers(1L); -ClusterInfo cluster = workspace.clusters().create(request).get(Duration.ofMinutes(10)); +ClusterDetails cluster = workspace.clusters().create(request).get(Duration.ofMinutes(10)); ``` ## Paginated responses @@ -510,7 +510,7 @@ Use the SDK in this package by prepending `shaded.` to all imports: import shaded.com.databricks.sdk.WorkspaceClient; import shaded.com.databricks.sdk.AccountClient; import shaded.com.databricks.sdk.core.DatabricksConfig; -import shaded.com.databricks.sdk.service.compute.ClusterInfo; +import shaded.com.databricks.sdk.service.compute.ClusterDetails; import shaded.com.databricks.sdk.service.compute.ListClustersRequest; // ... From 92b18284ab7c09a16decaa4f0a8ab3113f900f54 Mon Sep 17 00:00:00 2001 From: Matias Sanchez Moises Date: Tue, 11 Aug 2026 12:19:00 -0700 Subject: [PATCH 2/2] Add NEXT_CHANGELOG entry for the README ClusterDetails fix Signed-off-by: Matias Sanchez Moises --- NEXT_CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 1dd0ce0d2..4ed60eb36 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -12,6 +12,8 @@ ### Documentation +* Update README examples to reference `ClusterDetails` instead of the renamed `ClusterInfo` class. + ### Internal Changes ### API Changes