Skip to content

Commit 9ae82b8

Browse files
Google APIscopybara-github
authored andcommitted
feat: add standard sql table type, update scalar type enums
Committer: @shollyman PiperOrigin-RevId: 385164907
1 parent 80f4042 commit 9ae82b8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

google/cloud/bigquery/v2/standard_sql.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -66,6 +66,9 @@ message StandardSqlDataType {
6666
// Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
6767
DATETIME = 21;
6868

69+
// Encoded as fully qualified 3 part: 0-5 15 2:30:45.6
70+
INTERVAL = 26;
71+
6972
// Encoded as WKT
7073
GEOGRAPHY = 22;
7174

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

81+
// Encoded as a string.
82+
JSON = 25;
83+
7884
// Encoded as a list with types matching Type.array_type.
7985
ARRAY = 16;
8086

@@ -110,3 +116,9 @@ message StandardSqlField {
110116
message StandardSqlStructType {
111117
repeated StandardSqlField fields = 1;
112118
}
119+
120+
// A table type
121+
message StandardSqlTableType {
122+
// The columns in this table type
123+
repeated StandardSqlField columns = 1;
124+
}

0 commit comments

Comments
 (0)