Skip to content

Commit

Permalink
Change datastream stream merge and append_only to conflicts with (#11…
Browse files Browse the repository at this point in the history
…292) (#7835)

[upstream:5d82d77abdda75a8711933f9f71bee8a0ebb3f94]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and c2thorn committed Jul 30, 2024
1 parent bfd6a99 commit 46dacd2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/11292.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
datastream: removed a breaking change in `google_datastream_stream` that made one of `destination_config.0.bigquery_destination_config.0.merge` or `destination_config.0.bigquery_destination_config.0.append_only` required
```
4 changes: 2 additions & 2 deletions google-beta/services/datastream/resource_datastream_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ historical state of the data.`,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{},
},
ExactlyOneOf: []string{"destination_config.0.bigquery_destination_config.0.merge", "destination_config.0.bigquery_destination_config.0.append_only"},
ConflictsWith: []string{"destination_config.0.bigquery_destination_config.0.merge"},
},
"data_freshness": {
Type: schema.TypeString,
Expand All @@ -179,7 +179,7 @@ in the source database. With Merge mode, no historical record of the change even
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{},
},
ExactlyOneOf: []string{"destination_config.0.bigquery_destination_config.0.merge", "destination_config.0.bigquery_destination_config.0.append_only"},
ConflictsWith: []string{"destination_config.0.bigquery_destination_config.0.append_only"},
},
"single_target_dataset": {
Type: schema.TypeList,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ resource "google_datastream_stream" "default" {
kms_key_name = "%{bigquery_destination_table_kms_key_name}"
}
}
merge {}
}
}
Expand Down
1 change: 0 additions & 1 deletion website/docs/r/datastream_stream.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ resource "google_datastream_stream" "default" {
kms_key_name = "bigquery-kms-name"
}
}
merge {}
}
}
Expand Down

0 comments on commit 46dacd2

Please sign in to comment.