Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] workspaceClient.RegisteredModels.ListAll fails to list all models #813

Open
alexott opened this issue Feb 12, 2024 · 2 comments
Open

Comments

@alexott
Copy link
Contributor

alexott commented Feb 12, 2024

Code to list all models in a metastore:

models, err := ic.workspaceClient.RegisteredModels.ListAll(ctx, catalog.ListRegisteredModelsRequest{})

is failing with the following error:

If no catalog or schema is set, maxResults must be set.

Go SDK 0.30.0

@mgyucht
Copy link
Contributor

mgyucht commented Feb 19, 2024

Can you specify maxResults, catalog or schema?

However, it seems like a very weird requirement to have to specify max results. I think we should probably raise this to the backing team to see if they can lift this requirement (especially since with pagination, users should be able to get all models if need be).

@alexott
Copy link
Contributor Author

alexott commented Feb 19, 2024

Yep, it's a weird requirement. Can we push back to the corresponding team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants