如何在 python 中创建表时为 bigquery 中的表设置排序规则细节

问题描述 投票:0回答:0

我正在使用下面的 python 片段在 bigquery 的数据集中创建表。但是我无法找到一种方法来为表设置默认排序规则。

schema = client.schema_from_json(file_name)
table = bq.Table(table_id, schema=schema)
table.time_partitioning = bq.TimePartitioning(
type_=bq.TimePartitioningType.MONTH,
field=partition_field, )
table = client.create_table(table)

任何人都可以帮助设置默认排序规则吗?

python google-cloud-platform google-bigquery
© www.soinside.com 2019 - 2024. All rights reserved.