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

get_table method, when given table name with a wildcard, returns instance having current timestamp in modified property. #2035

Open
tanukifk opened this issue Sep 28, 2024 · 0 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API.

Comments

@tanukifk
Copy link

Environment details

  • OS type and version: Windows 11
  • Python version: 3.11.9
  • pip version: 24.0
  • google-cloud-bigquery: 3.16.0

Steps to reproduce

  1. get TableReference with a table name containing a wildcard
  2. call the get_table method to obtain the Table instance
  3. access to modified property

Code example

from google.cloud import bigquery

client = bigquery.Client(project="your-project")

table_ref = client.dataset("your_dataset").table("dummy_*")
table = client.get_table(table_ref)

print(table.modified)

Stack trace

No error happens.

It is reasonable that the get_table method only works when given an exact table name.
However, shouldn't it at least raise an error or warning instead of just returning the current timestamp?

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 28, 2024
@tanukifk tanukifk changed the title get_table method, when given table name with a wildcard, returns instance having current timestamp in modified property instead of actual modified time. get_table method, when given table name with a wildcard, returns instance having current timestamp in modified property. Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API.
Projects
None yet
Development

No branches or pull requests

2 participants