Skip to content

Commit 87fc56b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add the RANGE type to the google.cloud.bigquery.storage.v1.TableFieldSchema
PiperOrigin-RevId: 607833489
1 parent d8af2d6 commit 87fc56b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

google/cloud/bigquery/storage/v1/table.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ message TableFieldSchema {
8383

8484
// JSON, String
8585
JSON = 15;
86+
87+
// RANGE
88+
RANGE = 16;
8689
}
8790

8891
enum Mode {
@@ -96,6 +99,12 @@ message TableFieldSchema {
9699
REPEATED = 3;
97100
}
98101

102+
// Represents the type of a field element.
103+
message FieldElementType {
104+
// Required. The type of a field element.
105+
Type type = 1 [(google.api.field_behavior) = REQUIRED];
106+
}
107+
99108
// Required. The field name. The name must contain only letters (a-z, A-Z),
100109
// numbers (0-9), or underscores (_), and must start with a letter or
101110
// underscore. The maximum length is 128 characters.
@@ -168,4 +177,13 @@ message TableFieldSchema {
168177
// Optional. A SQL expression to specify the [default value]
169178
// (https://cloud.google.com/bigquery/docs/default-values) for this field.
170179
string default_value_expression = 10 [(google.api.field_behavior) = OPTIONAL];
180+
181+
// Optional. The subtype of the RANGE, if the type of this field is RANGE. If
182+
// the type is RANGE, this field is required. Possible values for the field
183+
// element type of a RANGE include:
184+
// * DATE
185+
// * DATETIME
186+
// * TIMESTAMP
187+
FieldElementType range_element_type = 11
188+
[(google.api.field_behavior) = OPTIONAL];
171189
}

0 commit comments

Comments
 (0)