得到错误创建大查询聚簇表时,位置参数过多

时间:2019-11-08 18:48:31

标签: google-bigquery

根据BigQuery文档BQDoc,您最多可以指定四个集群列。就我而言,我正在bq语句下执行以创建聚簇表,但一直得到太多的位置参数,仍然有

这是bq CLI语句

bq mk --table --schema /tmpbq/schema_.json --time_partitioning_field effectivedate --clustering_fields departmentid,vendorid, markstyleid, colorcode  myproject-np:cat_dataset.cat_table

如果我删除最后的2或1个群集列,则它可以工作。

1 个答案:

答案 0 :(得分:0)

我找到了解决方案-逗号分隔的群集列中不应有任何空间

bq mk --table --schema /tmpbq/schema_.json --time_partitioning_field effectivedate --clustering_fields departmentid,vendorid,markstyleid,colorcode myproject-np:cat_dataset.cat_table

@GoogleTeam,请在文档中提及。