rough-oyster-77458
04/05/2022, 7:11 PMpulumi up
, I see this error message:
error: deleting urn:pulumi:dev::data::gcp:bigquery/dataset:Dataset$gcp:bigquery/table:Table::my_dataset.my_table: 1 error occurred:
* cannot destroy instance without setting deletion_protection=false and running `terraform apply`
I changes some resource options:
opts=pl.ResourceOptions(
parent=dataset_raw,
delete_before_replace=True,
protect=False,
)
But the error has not been dissapeared.
What did I do wrong? How to fix that?shy-arm-32391
04/05/2022, 7:42 PMrough-oyster-77458
04/05/2022, 8:16 PMshy-arm-32391
04/05/2022, 8:25 PMrough-oyster-77458
04/05/2022, 9:15 PMdelete_before_replace=True
. Thanks so much!breezy-glass-7721
06/23/2022, 4:22 PMrough-oyster-77458
06/23/2022, 6:26 PMpulumi_gcp.bigquery.Table
object to create and update tables. It consumes schema
parameter to control the schema, where we should put a JSON string with a schema. When I just add a new column schema to the JSON, it creates a new column in the existing table without recreating the table. And it works pretty fine for me.
But if you want to change a column (for example, when you decide you want to change user_id
field type from STRING to INT), I'm afraid Pulumi will recreate the whole table. And this is a limitation of Bigquery, as well as most other column oriented data bases. It's not a limitation of Pulumi.breezy-glass-7721
06/23/2022, 7:03 PMrough-oyster-77458
09/05/2022, 7:37 AM