根据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个群集列,则它可以工作。
答案 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,请在文档中提及。