0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

BigQueryのパーティションの有効期限を変更する方法

Last updated at Posted at 2024-01-09

背景

BigQueryにおいてパーティションの期限が60日に設定されており、データが意図せず消えてしまうケースがあります。
気づかずにデータ10日分ほど消えてしまった orz

対策

下記のクエリを実行する

ALTER TABLE `[PROJECT_ID].[DATASET].[TABLE]`
SET OPTIONS (
  partition_expiration_days = [EXPIRATION_DAYS]
)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?