Skip to content

tool for managing and sweeping BigQuery tables

Notifications You must be signed in to change notification settings

to-lz1/bqsweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bqsweeper

Actions Status

tool for managing and sweeping BigQuery tables.

Install

go install github.com/to-lz1/bqsweeper@latest

Requirements

Users must authenticate access using the command line via gcloud CLI, and have the following permissions:

  • bigquery.tables.list
  • bigquery.tables.update
  • bigquery.tables.delete

See Also: https://cloud.google.com/bigquery/docs/access-control

Usage

Set expiration date for tables. Table ID can be regular expression.

bqsweeper --project [BIGQUERY_PROJECT_ID] invalidate [DATASET_ID] [TABLE_ID_REGEXP] [EXPIRATION_DATE(yyyyMMdd)]

About

tool for managing and sweeping BigQuery tables

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages