Skip to content

Commit

Permalink
feat: add standard sql table type, update scalar type enums
Browse files Browse the repository at this point in the history
Committer: @shollyman
PiperOrigin-RevId: 385164907
  • Loading branch information
Google APIs authored and Copybara-Service committed Jul 16, 2021
1 parent 80f4042 commit 9ae82b8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion google/cloud/bigquery/v2/standard_sql.proto
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,6 +66,9 @@ message StandardSqlDataType {
// Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
DATETIME = 21;

// Encoded as fully qualified 3 part: 0-5 15 2:30:45.6
INTERVAL = 26;

// Encoded as WKT
GEOGRAPHY = 22;

Expand All @@ -75,6 +78,9 @@ message StandardSqlDataType {
// Encoded as a decimal string.
BIGNUMERIC = 24;

// Encoded as a string.
JSON = 25;

// Encoded as a list with types matching Type.array_type.
ARRAY = 16;

Expand Down Expand Up @@ -110,3 +116,9 @@ message StandardSqlField {
message StandardSqlStructType {
repeated StandardSqlField fields = 1;
}

// A table type
message StandardSqlTableType {
// The columns in this table type
repeated StandardSqlField columns = 1;
}

0 comments on commit 9ae82b8

Please sign in to comment.