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
The quick start code in the README is outdated. It references and old class called ClusterInfo which appears to have been renamed to ClusterDetails
Reproduction
A minimal code sample demonstrating the bug.
package org.example;
import com.databricks.sdk.WorkspaceClient;
//import com.databricks.sdk.service.compute.ClusterInfo;
import com.databricks.sdk.service.compute.ClusterDetails;
import com.databricks.sdk.service.compute.ListClustersRequest;
public class Main {
public static void main(String[] args) {
WorkspaceClient w = new WorkspaceClient();
// for (ClusterDetails c : w.clusters().list(new ListClustersRequest())) {
// System.out.println(c.getClusterName());
// }
for (ClusterInfo c : w.clusters().list(new ListClustersRequest())) {
System.out.println(c.getClusterName());
}
}
}
Expected behavior
Quick start code should compile. Replace ClusterInfo with ClusterDetails
Is it a regression?
Did this work in a previous version of the SDK? If so, which versions did you try?
Activity