How to Set Big Query Require Partition Filter in BQ Commandline

后端 未结 2 457
天命终不由人
天命终不由人 2021-01-12 22:03

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

How can I set the same op

2条回答
  •  难免孤独
    2021-01-12 22:44

    To answer your second question:

    bq update --require_partition_filter --time_partitioning_field=event_time my_dataset.events
    

    Or with a fully qualified table name:

    bq update --require_partition_filter --time_partitioning_field=event_time project-id:my_dataset.events
    

    You can also disable with:

    bq update --norequire_partition_filter --time_partitioning_field=event_time project-id:my_dataset.events
    

提交回复
热议问题