- Create a new branch
- Create a new BigQuery connection
tb connection create bigquery - Generate the new BigQuery Data Source schema (instructions)
- Commit and wait for CI. You can check in the temporary CI branch that everything works as expected.
- Merge and wait for CD.
- Create another branch
- Add the new column to the schema and query
- Commit and wait for CI. You can check in the temporary CI branch that everything works as expected.
- Merge and wait for CD.
- [Optionally] Run
tb datasource sync bq_pypi_datato force sync and populate the new column.
For a while, we added the insertion_date column to Data Sources with all Nullable columns. We did this to provide an efficient sorting key for those Data Sources. This, however, has created many problems when iterating Data Sources. We have stopped adding this column and are now explicitly adding it to the schema for those Data Sources that already have it.
To keep your main branch in sync with this, you can follow these steps:
- Create a new branch
- Execute
tb pull --forcewith a CLI version >= 5.0.0. - Commit and merge the changes.