Skip to content

Commit

Permalink
Update documentation for google_bigquery_table.time_partitioning.expi…
Browse files Browse the repository at this point in the history
…ration_ms (#8827)
  • Loading branch information
wj-chen authored Sep 15, 2023
1 parent 6696d29 commit 7d9dc66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion mmv1/products/bigquery/Table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ properties:
name: 'expirationMs'
description: |
Number of milliseconds for which to keep the storage for a
partition.
partition. If unspecified when the table is created in a dataset
that has `defaultPartitionExpirationMs`, it will inherit
the value of `defaultPartitionExpirationMs` from the dataset.
To specify a unlimited expiration, set the value to 0.
- !ruby/object:Api::Type::String
name: 'field'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,11 @@ func ResourceBigQueryTable() *schema.Resource {
Description: `If specified, configures time-based partitioning for this table.`,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
// ExpirationMs: [Optional] Number of milliseconds for which to keep the
// storage for a partition.
// ExpirationMs: [Optional] Number of milliseconds for which to keep the storage for a
// partition. If unspecified when the table is created in a dataset that has
// `defaultPartitionExpirationMs`, it will inherit the value of
// `defaultPartitionExpirationMs` from the dataset.
// To specify a unlimited expiration, set the value to 0.
"expiration_ms": {
Type: schema.TypeInt,
Optional: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,7 @@ resource "google_bigquery_table" "test" {
type = "%s"
field = "ts"
require_partition_filter = true
expiration_ms = 1000
}
clustering = ["some_int", "some_string"]
schema = <<EOH
Expand Down

0 comments on commit 7d9dc66

Please sign in to comment.