hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.28k stars 1.72k forks source link

[Datastream] BigQuery data staleness defaults to 0 #18693

Open norbertcyran opened 2 months ago

norbertcyran commented 2 months ago

Community Note

Terraform Version & Provider Version(s)

terraform 0.13

Affected Resource(s)

Terraform Configuration

Debug Output

No response

Expected Behavior

Data staleness should default to 900s as it's documented

Actual Behavior

Data staleness defaults to 0

Steps to reproduce

  1. Create stream with BQ destination, do not set data_freshness field
  2. Stream will get created with data staleness set to 0

Important Factoids

No response

References

No response

b/353352460

ggtisc commented 1 month ago

Confirmed issue!

After creating a google_datastream_stream if the data_freshness argument isn't set, then in the tfstate file the value is equal to "" instead of 900 according to terraform registry