-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: moved require_partition_filter to the top (#335)
- Loading branch information
Showing
8 changed files
with
82 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Upgrading to BigQuery v8.0 | ||
|
||
The v8.0 release of BigQuery is a backwards incompatible release. | ||
|
||
- The supported provider has been updated to v5.3 | ||
- `require_partition_filter` has been deprecated under the `time_partitioning` | ||
block and can be used at the top level with the same name instead. | ||
|
||
## Migration Instructions | ||
|
||
1. Upgrade version | ||
|
||
```diff | ||
module "bigquery" { | ||
source = "terraform-google-modules/bigquery/google" | ||
- version = "~> 7.0" | ||
+ version = "~> 8.0" | ||
.... | ||
} | ||
``` | ||
|
||
2. Remove `require_partition_filter` from within the `time_partitioning` block | ||
and set it at the top level, if required. | ||
|
||
```diff | ||
module "bigquery" { | ||
source = "terraform-google-modules/bigquery/google" | ||
.... | ||
tables = [ | ||
{ | ||
.... | ||
+ require_partition_filter = true, | ||
time_partitioning = { | ||
.... | ||
- require_partition_filter = true, | ||
.... | ||
}, | ||
.... | ||
} | ||
] | ||
... | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters