-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Schema update for bigquery table #6931
Comments
Hi @alexandre-cruel, just wanted to get some clarification. There are two However there is the standard |
In the use case I'm working on this isnt for external_data_configuration, it was for tables with data directly living on bigquery but according to the documentation I thaught it was the same for the 2 schema parameters. Totally suitable yes, if you're sure that updating the schema to add a column wont delete the table and erase the dat, that'd be perfect 👍 ! |
That makes sense! It can be slightly confusing, and we are working on a UI update that should hopefully make it easier to differentiate between the two schema parameters. I cannot guarantee how the API will behave when the provider calls update, but I can say that Terraform will not try to destroy/recreate the table while updating the top-level schema field. To fully make sure, I recommend testing out your scenario first. If the provider is behaving differently than expected, feel free to comment here! |
Great, thank you for your investigation time and help ! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Description
I'd like to create bigquery tables via terraform.
The tables I plan to create are partitionned tables (i.e. requires a schema by default).
This schema will potentially change in the future if I need to add some columns to my table.
The data stored in the table isnt easy to reload and shouldnt be erased in production.
Though it looks like updating the schema will completely recreate the table as mentionned here.
From what google says here : it's not possible to do such thing.
I think this feature would really help creating the tables by IaC while being stil dynamic in there use.
Thank you for the help and clarification
New or Affected Resource(s)
References
The text was updated successfully, but these errors were encountered: