Skip to content

[ISSUE] README Quickstart Code Outdated - References ClusterInfo instead of ClusterDetails #501

@adchungcsc

Description

@adchungcsc

Description

The quick start code in the README is outdated. It references and old class called ClusterInfo which appears to have been renamed to ClusterDetails

Image

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?

This appears to have been renamed in 4817820#diff-dcc5c62b8ead6e8f88e09ee1ea136e8d91f15cd927629a563975470a266b71cc

Debug Logs
N/A

Other Information
N/A

Additional context

The old reference to ClusterInfo is also still present in a code excerpt from Step 3 in the Databricks documentation too https://docs.databricks.com/aws/en/dev-tools/sdk-java

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions