如何在BQ命令行中设置大查询要求分区过滤器 [英] How to Set Big Query Require Partition Filter in BQ Commandline

查看:96
本文介绍了如何在BQ命令行中设置大查询要求分区过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Big Query Web GUI中创建新的空分区表架构时,可以设置需要分区过滤器选项.

When Creating a new empty partitioned table schema in Big Query Web GUI, you can SET the Require Partition filter Option.

使用bq命令行工具创建表时,如何设置相同的选项.现在,我的命令是:

How can I set the same option when creating a table using bq command-line tool. Right now my command is:

bq mk --table --time_partitioning_field event_time my_dataset.events event_id:INTEGER,event_time:TIMESTAMP

该命令成功创建了分区表,但是我没有看到用于设置需要分区"过滤器的标志.

The command successfully creates the Partitioned Table, but I have not seen a flag for setting the Require Partition filter.

创建表格后,如何在以后编辑选项?

How can I edit the Option later after creating the table?

推荐答案

如果使用的bq命令行版本> = 2.0.30,则应该在mk命令中看到--require_partition_filter选项.如果不是这种情况,请告诉我们.谢谢!

If you are using a bq command line version >= 2.0.30 you should see a --require_partition_filter option in the mk command. Please let us know if this is not the case. Thanks!

这篇关于如何在BQ命令行中设置大查询要求分区过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆