【发布时间】:2017-08-30 07:48:18
【问题描述】:
我想使用 Python 检查 BigQuery 表的最后修改日期。为此,我使用了 Google Cloud BigQuery 客户端 (https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/bigquery)。
执行以下代码时,表属性'modified'为空。
google-cloud-bigquery==0.24.0
使用的代码:
from google.cloud import bigquery
client = bigquery.Client()
dataset = client.dataset(my_dataset)
table = dataset.table(my_table)
print table.modified
【问题讨论】: