Open fortnox13 opened 9 months ago
I can repro this. maxStaleness
is included in the request payload, but not in the response. Likely it is an upper stream issue
This is Bigquery CDC. Google support said: "Currently, there is only a SQL query option to perform this action." As workaround I use null_resource with local-exec:
resource "null_resource" "max_staleness" {
provisioner "local-exec" {
when = create
command = "bq query --use_legacy_sql=false --project_id my_project 'ALTER TABLE `my_project.my_dataset_my_table` SET OPTIONS ( max_staleness = INTERVAL 10 MINUTE} );'"
}
provisioner "local-exec" {
when = destroy
command = "bq query --use_legacy_sql=false --project_id my_project 'ALTER TABLE `my_project.my_dataset_my_table` SET OPTIONS ( max_staleness = NULL );'"
}
depends_on = [google_bigquery_table.default]
}
is this issue still persisting?
Hi, in our team we also have a problem with this. Is it still an ongoing issue?
The problem was in Google API. They have not supported this. It is better to open Google issue to fix this and ask them about the situation. I think they still have not fixed this.
Can confirm this is not fixed
I want to create a table with "max_staleness"
Output:
But the table does not have Option "max_staleness"
After retry terraform plan output:
The same issue with hashicorp/google = 5.7.0
If add max_staleness manually to the table I see max_staleness option in Google Console, but Terraform also has the output:
terraform version Terraform v1.4.2 on darwin_amd64
b/312697213