-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementing Bigtable Cluster.list_tables(). #1269
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
Conversation
gcloud/bigtable/cluster.py
Outdated
| self.name + '/tables/', 1) | ||
| if before != '': | ||
| raise ValueError('Table name %s not of expected format' % ( | ||
| table_pb.name,)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This uses the table stub instead of the cluster stub. This method is actually talking to a different service than every method until now. Also implementing Table.__eq__ so table comparison succeeds in unit tests.
9dc17cc to
215b9f6
Compare
| result = [] | ||
| for table_pb in table_list_pb.tables: | ||
| table_prefix = self.name + '/tables/' | ||
| if not table_pb.name.startswith(table_prefix): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
LGTM |
Implementing Bigtable Cluster.list_tables().
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This uses the table stub instead of the cluster stub. This
method is actually talking to a different service than
every method until now.
Also implementing
Table.__eq__so table comparison succeedsin unit tests.