Skip to content

fix(bigquery): Migrations: ignore extra columns in the table#6370

Merged
kodiakhq[bot] merged 3 commits intomainfrom
bigquery-migrations
Jan 5, 2023
Merged

fix(bigquery): Migrations: ignore extra columns in the table#6370
kodiakhq[bot] merged 3 commits intomainfrom
bigquery-migrations

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf commented Jan 5, 2023

BigQuery migrations should not fail if there are extra columns present in the table. As long as the columns are not required, it should ignore those columns and add any extra ones required by CloudQuery table schemas. This allows users to add additional columns of their own, and it means that you can upgrade to a new minor version of a source plugin and roll back later without issues.

This is tested in the new tests added in cloudquery/plugin-sdk#574

@hermanschaaf hermanschaaf requested review from a team and shimonp21 and removed request for a team January 5, 2023 11:01
@cq-bot cq-bot added the bigquery label Jan 5, 2023
@hermanschaaf hermanschaaf changed the title fix: BigQuery migrations: ignore extra columns in the table fix(bigquery): Migrations: ignore extra columns in the table Jan 5, 2023
@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Jan 5, 2023
@kodiakhq kodiakhq bot merged commit cab6e1e into main Jan 5, 2023
@kodiakhq kodiakhq bot deleted the bigquery-migrations branch January 5, 2023 14:26
hermanschaaf pushed a commit that referenced this pull request Jan 5, 2023
🤖 I have created a release *beep* *boop*
---


##
[2.0.2](plugins-destination-bigquery-v2.0.1...plugins-destination-bigquery-v2.0.2)
(2023-01-05)


### Bug Fixes

* **bigquery:** Migrations: ignore extra columns in the table
([#6370](#6370))
([cab6e1e](cab6e1e))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.18.0
([#6339](#6339))
([158365a](158365a))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.19.0
([#6363](#6363))
([ae6967c](ae6967c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.20.0
([#6376](#6376))
([d6187ec](d6187ec))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.21.0
([#6382](#6382))
([5baea40](5baea40))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: BigQuery migrations fail on new columns

3 participants