Skip to content

Commit ed7afc7

Browse files
committed
fix: added default value for use_legacy_sql field
1 parent 28accbd commit ed7afc7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ This module provisions a dataset and a list of tables with associated JSON schem
205205
| routines | A list of objects which include routine\_id, routine\_type, routine\_language, definition\_body, return\_type, routine\_description and arguments. | <pre>list(object({<br> routine_id = string,<br> routine_type = string,<br> language = string,<br> definition_body = string,<br> return_type = string,<br> description = string,<br> arguments = optional(list(object({<br> name = string,<br> data_type = string,<br> argument_kind = string,<br> mode = string,<br> })), []),<br> }))</pre> | `[]` | no |
206206
| storage\_billing\_model | Specifies the storage billing model for the dataset. Set this flag value to LOGICAL to use logical bytes for storage billing, or to PHYSICAL to use physical bytes instead. LOGICAL is the default if this flag isn't specified. | `string` | `null` | no |
207207
| tables | A list of objects which include table\_id, table\_name, schema, clustering, time\_partitioning, range\_partitioning, expiration\_time and labels. | <pre>list(object({<br> table_id = string,<br> description = optional(string),<br> table_name = optional(string),<br> schema = string,<br> clustering = optional(list(string), []),<br> require_partition_filter = optional(bool),<br> time_partitioning = optional(object({<br> expiration_ms = string,<br> field = string,<br> type = string,<br> }), null),<br> range_partitioning = optional(object({<br> field = string,<br> range = object({<br> start = string,<br> end = string,<br> interval = string,<br> }),<br> }), null),<br> expiration_time = optional(string, null),<br> deletion_protection = optional(bool),<br> labels = optional(map(string), {}),<br> }))</pre> | `[]` | no |
208-
| views | A list of objects which include view\_id and view query | <pre>list(object({<br> view_id = string,<br> description = optional(string),<br> query = string,<br> use_legacy_sql = bool,<br> labels = optional(map(string), {}),<br> }))</pre> | `[]` | no |
208+
| views | A list of objects which include view\_id and view query | <pre>list(object({<br> view_id = string,<br> description = optional(string),<br> query = string,<br> use_legacy_sql = optional(bool, true),<br> labels = optional(map(string), {}),<br> }))</pre> | `[]` | no |
209209

210210
## Outputs
211211

metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ spec:
141141
view_id = string,
142142
description = optional(string),
143143
query = string,
144-
use_legacy_sql = bool,
144+
use_legacy_sql = optional(bool, true),
145145
labels = optional(map(string), {}),
146146
}))
147147
defaultValue: []
@@ -397,4 +397,4 @@ spec:
397397
- iam.googleapis.com
398398
providerVersions:
399399
- source: hashicorp/google
400-
version: ">= 5.39, < 7"
400+
version: ">= 5.39, < 8"

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ variable "views" {
153153
view_id = string,
154154
description = optional(string),
155155
query = string,
156-
use_legacy_sql = bool,
156+
use_legacy_sql = optional(bool, true),
157157
labels = optional(map(string), {}),
158158
}))
159159
}

0 commit comments

Comments
 (0)