mozilla / bigquery-etl

Bigquery ETL

Home Page:https://mozilla.github.io/bigquery-etl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should ./bqetl initialize not overwrite tables that contain data?

scholtzan opened this issue · comments

This is a follow-up to #4792 (comment)

Running ./bqetl initialize <some query> will overwrite tables that potentially contain data if the query has an init.sql file with CREATE OR REPLACE TABLE.
Should the tooling throw an error when an attempt is made to overwrite/re-initialize tables that already contain data? This could potentially save us from accidentally deleting data. And have a --force option to enforce running the init.sql
Or should it just run the init.sql file as is?

┆Issue is synchronized with this Jira Task