Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bigquery table replace hitting "already exists" issue #2498

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

VenelinMartinov
Copy link
Contributor

Bigquery materialized views on tables seem to be structural, so due to pulumi/pulumi#918 the normal pulumi replace of creating and then deleting does not work.

This PR enables DeleteBeforeRelace by default for the resource, fixing the issue.

fixes #2491

@VenelinMartinov VenelinMartinov requested a review from a team October 3, 2024 14:35
Copy link

github-actions bot commented Oct 3, 2024

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@VenelinMartinov VenelinMartinov changed the base branch from master to vvm/update_providertestr October 3, 2024 14:42
@t0yv0
Copy link
Member

t0yv0 commented Oct 3, 2024

Seems reasonable, especially since BigQuery Tables seem to be a bit more about supporting the analytics world where liveness guarantees are less of a problem presumably than transactional databases. A bit drastic but the underlying resource lifecycle seemed completely not working right before so this looks like a good default.

Base automatically changed from vvm/update_providertestr to master October 3, 2024 15:33
@VenelinMartinov VenelinMartinov enabled auto-merge (squash) October 3, 2024 15:45
@VenelinMartinov
Copy link
Contributor Author

We've been using this for structural resources in AWS quite extensively - we don't really have much better options for resource like this = (

@VenelinMartinov VenelinMartinov merged commit 8a2ca11 into master Oct 3, 2024
23 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/fix_bigquery_table_replace branch October 3, 2024 16:40
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v8.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-creating materialized view fails (gcp.bigquery.Table)
3 participants