dttung2905 commented on code in PR #290: URL: https://github.com/apache/iceberg-go/pull/290#discussion_r1949738471
########## catalog/rest/rest.go: ########## @@ -989,3 +989,54 @@ func (r *Catalog) CheckTableExists(ctx context.Context, identifier table.Identif } return true, nil } + +func (r *Catalog) ListViews(ctx context.Context, namespace table.Identifier) ([]table.Identifier, error) { + if err := checkValidNamespace(namespace); err != nil { + return nil, err + } + + ns := strings.Join(namespace, namespaceSeparator) + path := []string{"namespaces", ns, "views"} + + type resp struct { + Identifiers []identifier `json:"identifiers"` + } Review Comment: @zeroshade Thanks for the quick review. Nice catch. I did thought about it but then I referred to the `ListTables` method that was done previously and realise next page token is not implemented as well. Do you want to implement it in a separate PR and we fix it for the `ListTables` method as well? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org