This repository was archived by the owner on Mar 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
spanner.Client().list_instances method filter_ parameter not working #131
Copy link
Copy link
Closed
Labels
api: spannerIssues related to the googleapis/python-spanner API.Issues related to the googleapis/python-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
- Search the issues already opened: https://github.com/googleapis/python-spanner/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version: Alpine, MacOS,...
- Python version:
3.8.2 - pip version:
20.1.1 google-cloud-spannerversion:Version: 1.17.1
Steps to reproduce
- Initialize a client
- Run
client.list_instances(filter_="name:something")
Code example
# example
from google.cloud import spanner
c = spanner.Client(project="my-project")
print([ i.instsance_id for i in c.list_instances(filter_="name:something") ])
print([ i.instsance_id for i in c.list_instances(filter_="labels.env:temp") ])Stack trace
# example
The code doesn't throw exceptions or errors, but it gives the list of all instances ignoring the filter_ parameter.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the googleapis/python-spanner API.Issues related to the googleapis/python-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.