[英]Is it possible to remove the Partition filter=Required setting from BigQuery table?
I have existed table with setting of Partition filter=Required
I want to disable it so I can run queries on the table without having to specify the partition column in the WHERE
.我已经存在具有Partition filter=Required
设置的表我想禁用它以便我可以在表上运行查询而不必在WHERE
中指定分区列。
Is it possible or must I create a new table and copy data to it?是否可以或必须创建一个新表并将数据复制到其中?
Is it possible or must I create a new table and copy data to it?是否可以或必须创建一个新表并将数据复制到其中?
Yes, You can use an ALTER command to alter your table as follow:是的,您可以使用ALTER 命令来更改您的表,如下所示:
#standardSQL
ALTER TABLE IF EXISTS mydataset.newtable
SET OPTIONS(
require_partition_filter = false
)
You can change the require_partition_filter
back to true if needed using the same command如果需要,您可以使用相同的命令将require_partition_filter
更改回 true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.