databricks-sdk-go
databricks-sdk-go copied to clipboard
`GetByName` method does not work for Volumes
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.