Skip to content

Commit

Permalink
feat: Add the RANGE type to the google.cloud.bigquery.storage.v1.Tabl…
Browse files Browse the repository at this point in the history
…eFieldSchema

PiperOrigin-RevId: 607833489
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 17, 2024
1 parent d8af2d6 commit 87fc56b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions google/cloud/bigquery/storage/v1/table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ message TableFieldSchema {

// JSON, String
JSON = 15;

// RANGE
RANGE = 16;
}

enum Mode {
Expand All @@ -96,6 +99,12 @@ message TableFieldSchema {
REPEATED = 3;
}

// Represents the type of a field element.
message FieldElementType {
// Required. The type of a field element.
Type type = 1 [(google.api.field_behavior) = REQUIRED];
}

// Required. The field name. The name must contain only letters (a-z, A-Z),
// numbers (0-9), or underscores (_), and must start with a letter or
// underscore. The maximum length is 128 characters.
Expand Down Expand Up @@ -168,4 +177,13 @@ message TableFieldSchema {
// Optional. A SQL expression to specify the [default value]
// (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(google.api.field_behavior) = OPTIONAL];

// Optional. The subtype of the RANGE, if the type of this field is RANGE. If
// the type is RANGE, this field is required. Possible values for the field
// element type of a RANGE include:
// * DATE
// * DATETIME
// * TIMESTAMP
FieldElementType range_element_type = 11
[(google.api.field_behavior) = OPTIONAL];
}

0 comments on commit 87fc56b

Please sign in to comment.