databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

`GetByName` method does not work for Volumes

Open shreyas-goenka opened this issue 1 year ago • 1 comments
trafficstars

Description The GetByName method calls ListVolumes which requires a catalog_name argument that's not provided by the implementation. So you end up with an error:

ListVolumes Missing required field: catalog_name

Reproduction Example to reproduce:

func TestFoo(t *testing.T) {
	w, err := databricks.NewWorkspaceClient()
	require.NoError(t, err)

	_, err = w.Volumes.GetByName(context.Background(), "main.test-schema-1.test-volume-1")
	require.NoError(t, err)
}

Is it a regression? The SDK version is v0.45.0. I don't think this is a regression.

shreyas-goenka avatar Sep 09 '24 21:09 shreyas-goenka