如何在BigQuery php API中设置partition by和cluster by参数(https://github.com/googleapis/google-cloud-php-bigquery)

如何在BigQuery php API中设置partition by和cluster by参数(https://github.com/googleapis/google-cloud-php-bigquery),php,google-bigquery,Php,Google Bigquery,下面是使用PHPAPI创建BigQuery表的代码。如何在API中设置PARTITION BY和CLUSTER BY参数 $fields = array( array('name' => 'row_id', 'type' => 'integer', 'mode' => 'required'), array('name' => 'site_id', 'type' => 'integer', 'mode' => 'required'), array('name'

下面是使用PHPAPI创建BigQuery表的代码。如何在API中设置PARTITION BY和CLUSTER BY参数

$fields = array(
array('name' => 'row_id', 'type' => 'integer', 'mode' => 'required'),
array('name' => 'site_id', 'type' => 'integer', 'mode' => 'required'),
array('name' => 'article_id', 'type' => 'integer', 'mode' => 'required')
);

$client = new BigQueryClient([
'projectId' => $my_project_id,
'keyFilePath' => $my_credential_json_file
]);

$client->dataset($dataset_id)->createTable($table_name, [
'schema' => [
'fields' => $fields_array
]);

创建表的最佳方法是使用DDL
CREATETABLE
语句。下面是其中关于
CLUSTER BY
子句的文档:

创建表的最佳方法是使用DDL
create TABLE
语句。这是关于
集群的文档,其中包含
子句:

请提出一个明确的问题。Hi@DV82XL希望我的问题明确。谢谢更好,谢谢你!请问一个清楚的问题。嗨@DV82XL希望我的问题清楚知道。谢谢更好,谢谢你!我更新了我的问题。希望现在一切都清楚了。谢谢我更新了我的问题。希望现在一切都清楚了。谢谢