Skip to content

Commit

Permalink
add docs for bigquery views (hashicorp#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow authored Nov 21, 2017
1 parent fd0b314 commit 1ab39f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/r/bigquery_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ The following arguments are supported:
* `time_partitioning` - (Optional) If specified, configures time-based
partitioning for this table. Structure is documented below.

* `view` - (Optional) If specified, configures this table as a view.
Structure is documented below.

The `time_partitioning` block supports:

* `expiration_ms` - (Optional) Number of milliseconds for which to keep the
Expand All @@ -81,6 +84,13 @@ The `time_partitioning` block supports:
* `type` - (Required) The only type supported is DAY, which will generate
one partition per day based on data loading time.

The `view` block supports:

* `query` - (Required) A query that BigQuery executes when the view is referenced.

* `use_legacy_sql` - (Optional) Specifies whether to use BigQuery's legacy SQL for this view.
The default value is true. If set to false, the view will use BigQuery's standard SQL.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
Expand Down

0 comments on commit 1ab39f1

Please sign in to comment.